Thank you for replying, but I don't understand how this would work. I am
using Access 2003, and I tried using the Find Duplicates query wizard, but it
says it can only find duplicates in one table, and not both. Additionally, I
have some duplicates within the table that I do not wish to disrupt, only
those records that are present in BOTH tables. Can I still do this in 2003
and the Find Duplicates query wizard? Thanks!!
> Use the Find Duplicates query wizard. It will help you build a query that
> finds the duplicate records (not files) in the two tables. Then you can
[quoted text clipped - 6 lines]
> > leaving the other files remaining? If anyone could help me, I would REALLY
> > appreciate it. Thanks!!!
Doh!
Sorry, I wasn't thinking clearly when I responded. The way to find the
duplicates between two tables is to create a query that has a WHERE clause
that is a subquery that looks for a match in the other table. So you need to
use the field name or names that would determine if there are duplicates. It
would be something like:
SELECT * FROM MainTable WHERE KeyFieldName IN(SELECT OtherKeyField FROM
OtherTable);

Signature
Dave Hargis, Microsoft Access MVP
> Thank you for replying, but I don't understand how this would work. I am
> using Access 2003, and I tried using the Find Duplicates query wizard, but it
[quoted text clipped - 13 lines]
> > > leaving the other files remaining? If anyone could help me, I would REALLY
> > > appreciate it. Thanks!!!
Confused about Access - 13 May 2008 18:51 GMT
That sounds great. I have one other question. Where do I enter " SELECT *
FROM MainTable WHERE KeyFieldName IN(SELECT OtherKeyField FROM
> OtherTable)" ? I clicked on the new query button, then another window comes up that asks me to select "design view, simple query wizard, crosstab wizard, find duplicates query wizard, and find unmatched query wizard." Thanks for your help!
> Doh!
> Sorry, I wasn't thinking clearly when I responded. The way to find the
[quoted text clipped - 23 lines]
> > > > leaving the other files remaining? If anyone could help me, I would REALLY
> > > > appreciate it. Thanks!!!
Klatuu - 13 May 2008 19:01 GMT
Go into Design view. When you get the Select Table dialog, close it. Then
in the upper left corner of your screen will be a button SQL. Click that and
the designer will change to a blank screen. Put the code in there. Now, of
course, you will have to change the table and field names to use your actual
names.

Signature
Dave Hargis, Microsoft Access MVP
> That sounds great. I have one other question. Where do I enter " SELECT *
> FROM MainTable WHERE KeyFieldName IN(SELECT OtherKeyField FROM
[quoted text clipped - 27 lines]
> > > > > leaving the other files remaining? If anyone could help me, I would REALLY
> > > > > appreciate it. Thanks!!!
Confused about Access - 13 May 2008 19:38 GMT
Thank you for your help. Actually what also worked was "Find unmatched query
wizard." Thanks for all of your help!! It was greatly appreciated!
> Go into Design view. When you get the Select Table dialog, close it. Then
> in the upper left corner of your screen will be a button SQL. Click that and
[quoted text clipped - 33 lines]
> > > > > > leaving the other files remaining? If anyone could help me, I would REALLY
> > > > > > appreciate it. Thanks!!!