If you want the totals to appear as a row total in your listbox, use a union query to combine the two queries into one.
If you want the totals to appear as s column total in your listbox, construct a crosstab query using the union query as the data source for the crosstab. The crosstab query wizard will help with about 90% of the construction of the crosstab.
Main Topics
Browse All Topics





by: SeanStricklandPosted on 2009-04-29 at 07:46:19ID: 24261069
First, you need to have an item in each of the recordsets that links the two. THEN you want to create a third query to combine the two queries you've created and use that for the recordset of your listbox.
If the relating field/key in each query is CustomerID, your third query would look something like this:
SELECT Query1.*, Query2.* FROM Query1 INNER JOIN Query2 ON Query1.CustomerID = Query2.CustomerID