How can I compare 2 queries?

Ben2k

Board Regular
Joined
Oct 16, 2002
Messages
77
Hi

I have two queries lets say QueryA and QueryB, both return the same fields but are based on different criteria.

In both queries there is a field called InvoiceNumber

In theory both queries should return the exact same records however there must be a descrepency somewhere in the criteria as there is a difference of 8 records.

Is there anyway I can compare the two queries and return the following

InvoiceNumbers in QueryA which do not appear in QueryB
InvoiceNumbers in QueryB which do not appear in QueryA

I hope theres an easy way to do this otherwise it means printing results of both queries and ticking them off each one, not something I fancy with 2000+ records in each one (especially on a friday!) :oops:

Thanks

Ben
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Hi,

Have you tried the "find unmatched query wizard"? Very useful. Simply select the 2 tables/queries you wish to check and this will return what is in one but not the other. Do it both ways round.

Good luck.

G.
 
Upvote 0
Whne you create a new query Access asks you how you want to do it with the following options

Design View
Simple Query Wizard
Crosstab Query Wizard
Find Duplicates Query Wizard
Find Unmatched Query Wizard
 
Upvote 0

Forum statistics

Threads
1,221,783
Messages
6,161,938
Members
451,730
Latest member
BudgetGirl

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top