View Full Version : Totalling a field from multiple tables...


NtriusBIL
05-31-2002, 06:12 AM
I have two tables with the same field name in each one, 'units' for example. I want to be able to select the sum of 'units' from table A and table B into one overall result.

Of course the first thing I tried was

select sum(units) from tableA, tableB

Access didn't like that because of the identical field names. Am I headed in the right direction, or should I find a way to put all of these things in one table?

RichMorrison
05-31-2002, 06:43 AM
See Access Help for "Union" queries.

RichM

David R
05-31-2002, 10:06 AM
or should I find a way to put all of these things in one table?Why are they separated into two tables presently? Are they coming from different sources, or was this a design choice?