RemoveDuplicates.mdb (beginner) |
Post Reply |
Author | |
Roger Carlson
Microsoft MVP Joined: 20 Feb 2008 Status: Offline Points: 261 |
Post Options
Thanks(0)
Posted: 27 Jul 2008 at 11:16pm |
Please consider donating $1 per sample downloaded, find out why here.
RemoveDuplicates.mdb Illustrates a method for removing duplicate records from a table.
1) If the table does not have a primary key, add an autonumber field. It is essential that the table have a unique field. For example, copy Chains table, add a field called ChainID and make it an autonumber and the Primary Key. 2) Create a delete query like qdelRemoveDuplicatesFromChains2: DELETE * FROM Chains2 AS E WHERE E.ChainID > (SELECT MIN(X.ChainID) FROM Chains2 X WHERE E.Chain = X.Chain); 3) Run the delete query/ DownloadAccess 97 (74 KB): uploads/5/RemoveDuplicates97.zip Access 2000 (77 KB): uploads/5/RemoveDuplicates2k.zip |
|
|
|
Sponsored Links | Want a good read? Try The Summer of His Life (available on Amazon!) |
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |