Delete query......

  • Thread starter Thread starter Paul
  • Start date Start date
P

Paul

How to create a Delete query to delete all the duplicate data from a table?
The table consists of 1PK and 5 other fields. I like to use all the fields
except the PK field to evaluate if a record is duplicated and delete the
dupplicate record(s) from the table. Thanks.
 
How to create a Delete query to delete all the duplicate data from a
table?
The table consists of 1PK and 5 other fields. I like to use all the fields
except the PK field to evaluate if a record is duplicated and delete the
dupplicate record(s) from the table. Thanks.
--------------------
You can't do it with a delete query. You need to write some VBA code to
step through all the rows and delete the duplicates. You also need to
decide whether you wish to delete the first duplicate or the second
duplicate.

Hope this helps,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top