Is this possible?

ThisIsntMyRealName

Board Regular
Joined
May 23, 2009
Messages
69
I have two union queries in two different databases. They both have similar input files, 3 files with the same # of records and an amount field that totals the same for all 3, except some other fields are slightly different. When I do the union for each side, the combined output of the union queries come up with a different number of records and a different amount total. ACCESS 2007.

Does this seem like a corruption?
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
UNION queries drop all "duplicate" type records, meaning if you have a record in one table/query that is exactly the same as one in a different table/query, when those two tables/queries are joined in a UNION query, only one of those records will be returned, not both.

Could that be what is going on?
 
Upvote 0
Further to Joe's post, if this is the case and you want all the records, change the query to a UNION ALL.

Alan
 
Upvote 0

Forum statistics

Threads
1,224,595
Messages
6,179,798
Members
452,943
Latest member
Newbie4296

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