Computing.Net > Forums > Database > Sum total of two records

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Sum total of two records

Reply to Message Icon

Name: russells
Date: March 10, 2009 at 13:49:18 Pacific
OS: Windows XP
Subcategory: General
Comment:

I have an Access 2007 database issue. I need to add the values from the laboratory results for two chemical compounds: m, p-Xylenes and o-Xylenes (example: 2.5 ug/L and 3.2 ug/L, respectively), then create a new row or record called "Total Xylenes" (result would be 5.7 ug/L). My problem is I have 20 rows (10 each of m, p-Xylenes and o-Xylenes) of data to combine into 10 rows ("Total Xylenes"). I need to be able to do this in either Access or Excel. Not sure how to write an expression or SQL statement in a query to look for the two Xylene results, add them together, and insert them into a new record called "Total Xylenes". The number of records to run this on changes so an EOF function would be helpful, but not necessary.

My head hurts from trying to see if union, inner join, macro, or any other query will do what I want.

Thanks

Russell



Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Database Forum Home


Sponsored links

Ads by Google


Results for: Sum total of two records

connecting records www.computing.net/answers/dbase/connecting-records/343.html

help! blank lines (break, compute) www.computing.net/answers/dbase/help-blank-lines-break-compute/481.html

Shortcut for new record in Access? www.computing.net/answers/dbase/shortcut-for-new-record-in-access/120.html