I have an Access database with over 520,000 rows. I want eliminate those
records which have a duplicate serial number field. (This should reduce the
rows to 100,000 to 200,000.)
How the heck do I do eliminate duplicates?
The simplest way would be to BACK UP YOUR DATABASE (you may want it back...).
Then create a new table by copying the existing table, *design mode only*, to
a new table name. Open the new table and add a unique Index to the serial
number.
Then run an Append query to append from the existing table into the new one.
You'll get a warning message like "182415 records were not added due to key
violations" - these are the dups.
Then delete the old table and rename the new one with the old table's name.
Do note that if you have records with duplicate serial numbers but DIFFERENT
values in other fields, this (or almost any other) approach will discard
possibly valid data without any warning or any recourse.