Delete duplicates from a table

  • Thread starter mls via AccessMonster.com
  • Start date
M

mls via AccessMonster.com

I want to delete duplicate records by comparing 25 fields( basically check
all the columns) .
I always use distinct to check a single column but not sure how I can check
all the fields!!
 
J

John W. Vinson

I want to delete duplicate records by comparing 25 fields( basically check
all the columns) .
I always use distinct to check a single column but not sure how I can check
all the fields!!

One way to do this is to create a new table with the same fields (copy and
paste the table, selecting design view only); then create an Append query with
its "Unique Values" property set to Yes. The SQL equivalent would be

INSERT INTO newtable
SELECT DISTINCT * FROM oldtable;
 

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

Top