Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Access Repeats

Status
Not open for further replies.

wrestlingmjn59

Technical User
Sep 13, 2006
5
US
So I have thousands of lines of contact information. I need to delete all of the repeating contacts. Is there a way to do this? Is there a filter or querry specifically for this?
 
Have you seen:
Delete Duplicates (Save One From Each Group)
faq701-5721
 
Or create a new table of distinct records....

delete records from old table

insert data from new table to old table
 
OK I tried what Remou said and I can't seem to get the code right. I put in Sheet1 as the table name code but I'm not exactly sure what should go in as ID or DF. Could someone direct me a little more with this please?
 
Copy your actual table (structure only)
Open the copy in table design view, multiselect the fields you want to dedup (eg FirstName, LastName) and make them an unique index (ie not allowing duplicate)
Save and go in datasheet view
Open the original table and copy all records in the clipboard
Return to the copy and paste-append

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top