I have a query that is working correctly, returning the correct number of records and I checked the total dollar amount and all looks perfect.. that query is pulling data from two tables and giving me a total of $254,998 out of $306,267:
SELECT DISTINCT tmpBankDebitConcatenate.Store, tmpBankDebitConcatenate.Amount
FROM tmpBankConcatenate LEFT JOIN tmpBankDebitConcatenate ON tmpBankConcatenate.Amount = tmpBankDebitConcatenate.Amount
GROUP BY tmpBankDebitConcatenate.Store, tmpBankDebitConcatenate.Amount
ORDER BY tmpBankDebitConcatenate.Amount DESC;
I was hoping this query using that as a subquery would yield the difference being $51,269, but I've done something wrong and the new query is returning $306,267:
SELECT tmpBankDebitConcatenate.Store, tmpBankDebitConcatenate.Amount
FROM tmpBankDebitConcatenate
WHERE (((Exists (SELECT qryAutoMatchChangeOrders.Store, qryAutoMatchChangeOrders.Amount
FROM qryAutoMatchChangeOrders
WHERE ((tmpBankDebitConcatenate.Store <> qryAutoMatchChangeOrders.Store) AND
(tmpBankDebitConcatenate.Amount <> qryAutoMatchChangeOrders.Amount))))=False))
ORDER BY tmpBankDebitConcatenate.Amount DESC;
Thanks for any clues!