Automatically Delete Duplicate Records From a Table

exm206

New Member
Joined
Jun 11, 2003
Messages
19
I have a problem and was wondering if someone could help me. I am trying to automatically delete duplicate records from at table in Access 97. The problem is that Access is trying to delete records that are obviously not duplicates. I am using LastName, FirstName, Street1, and City as the primary keys(which Access should use to match the duplicates. An example of records that Access is trying to telling me are duplicates are:

LastName FirstName Street1 City
2003 Greenwood Assoc 2003 Greenwood Ave Trenton
201 St Pauls Condo Assoc Unknown
208 Sherman Inc. 208 Sherman Ave. Newark

Obviously, the four fields do not match, so these four records are not duplicates. Does anyone have any idea what the problem is here? I appreciate any help you could give me.
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
Have you tried using the Find Duplicates Query Wizard?

But let me warn you - deleting duplicates is not as easy as it sounds. Many people end up deleting ALL instances of duplicate records, not just all but one...

I recommend using a Make-Table query that gets only the distinct records. Start a new query in design view, change the query to a make-table query, then in the query's Properties window, change Unique Values to Yes. Then you can delete your old table.

HTH,

Russell
 
Upvote 0

Forum statistics

Threads
1,221,550
Messages
6,160,459
Members
451,648
Latest member
SuziMacca

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