View Full Version : Comparison Query


aftershokk
09-05-2001, 12:06 PM
I need help. I have two tables with both containing a cust number which is defined as a primary key.
Every day I load this large file into Access and I want to see if any cust numbers have been updated from the previous day. I can get my other fields to work using <>.
This cust number filed will not work.
help

Pat Hartman
09-05-2001, 05:17 PM
I think that what you are trying to do is to find out if any new customers have been added or if any old customers have been deleted. You would need two "unmatched" queries to determine this. Make the first one with the "new" table as the first table you select with the wizard and the "old" table as the second. This will tell you which records have been added. Create the same query with the two tables reversed, select the "old" table first, the "new" one second, to find any deleted records.

aftershokk
09-06-2001, 06:51 AM
Thisis not working. I tried that with a new table and an old. The new had two new product numbers, but the query comes out blank. I tried this same query on my product description and it worked.
For some reason, it does not work on the primary key.

Pat Hartman
09-06-2001, 07:06 AM
Did you use the wizard to build the "unmatched" query? Did you select the correct key field from each table? If so, check your data carefully. If you are still not getting the correct results, post the query.

aftershokk
09-06-2001, 07:36 AM
I think I figured it out.

Thanks!!!!!!!!!