Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Checking 2 tables for duplicate entries

Posted on 2011-02-19
2
Medium Priority
?
385 Views
Last Modified: 2013-11-05
Hello folks,

I have two tables in an Access database. Now 1 of these tables (new_table) I would like to compare with the other (old_table) to find out what has changed since the last update.. Both tables has a field called SubCategory3.

I would like to query both tables on category 3 to see what has changed in the new_table because at the moment new_table.subcategory3 contains 600 records and old_table.subcategory3 contains 559 records.
I'm using the following query but think I'm on the wrong track as i'm getting all the identical records from both tables but not the records that have changed  :D.
SELECT DISTINCT Table_01.SUBCATEGORY3, Table_011_Old.SUBCATEGORY3
FROM Table_01 INNER JOIN Table_011_Old ON Table_01.SUBCATEGORY3 = Table_011_Old.SUBCATEGORY3;

Open in new window

0
Comment
Question by:Eaddy Barnes
2 Comments
 
LVL 77

Accepted Solution

by:
peter57r earned 1600 total points
ID: 34936062
Use the Unmatched Query Wizard  to do this.
use the new_  table as the first table in wizard.
0
 
LVL 9

Assisted Solution

by:borki
borki earned 400 total points
ID: 34936732
0

Featured Post

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

We live in a world of interfaces like the one in the title picture. VBA also allows to use interfaces which offers a lot of possibilities. This article describes how to use interfaces in VBA and how to work around their bugs.
Windows Explorer let you handle zip folders nearly as any other folder: Copy, move, change, and delete, etc. In VBA you can also handle normal files and folders, but zip folders takes a little more - and that you'll find here.
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question