Corey,
Given that you have used a pair of queries to prepare the data, can I guess that the data comes from the same table initially? If so there is a much easier and more straight-forward way to do this.
Either way, this is virtually the method for both cases:
You seem to want a group sum of Company Business and Name, summing the Net Sales field... so:
SELECT Table1.[Company Business]
, Table1.[Company Name]
, Sum(Table1.[Net Sales]) AS [Total]
FROM Table1
GROUP BY Table1.[Company Business]
, Table1.[Company Name]
should do the trick, you will need to change the table/query name, obviously. You will need one of these for each table/query for incorporate and just seperate them by "UNION".
If you are using queries to seperate data out of one single table, then just delete the queries and use this directly, then add in your criteria as per your original queries.
Hope it helps.
Lee
|