Find Duplicates Easily in Microsoft Access

Duplicate records can appear if you have multiple people entering data into a database without enough safeguards. Merging several databases together can also cause duplicates. Access provides a query tool to find duplicates in your database. You can then remove or merge them, making your database easier to read and more effective.

Steps

  1. Know what makes data "duplicate". Duplicate data doesn't mean that all of the fields are identical. For example, a customer that was entered into the database twice may have two different IDs and potentially different spellings. On the other hand, if the name is common it could be two different customers. You'll need to compare the data available and check each result carefully to determine what is and isn't duplicate.
  2. Backup your database. It is recommended that you create a new backup before making big changes. This way you can restore the database if you accidentally delete the wrong entries.
    • Click the File menu and select "Save As" or "Save & Publish".
    • Click "Backup Database" in the Advanced section. Follow the prompts to backup your database.
  3. Inform other users that you're about to make changes. In order to avoid data conflicts, try to ensure that no other users will be adding data to the database. This isn't required, but can save you some headache later if things go wrong.
    • Set your database to Exclusive mode if you can. This will prevent any changes from being made by other users. Click the File menu and select "Options", then select "Client Settings". In the "Default open mode" section, select "Exclusive". If you don't have many people using the database, you generally don't need to worry about this.
  4. Open the Query Wizard. The Query tool can find entries that contain duplicate content. The process for starting the wizard varies depending on the version of Access you are using:[1]
    • 2013/2010 - Click the "Create" tab and then click "Query Wizard".
    • 2007 - Click the "Insert" or "Create" tab and select "Query Wizard".
    • 2003 - Open the Database window and select the "Queries" tab. Click the "New" button.
  5. Select the "Find Duplicates Query Wizard". This query compares fields to find duplicate entries.
  6. Choose the table you want to search. All of the tables in your database will be listed. Select the table you want to check for duplicates.
    • For most duplicate checking, you'll want to keep the "Tables" view selected.
  7. Select the fields you think contain duplicates. Select all of the fields that you want to compare for duplicate data. Include enough fields to make a judgment. Duplicates are only returned if the fields match character for character. You can use expressions to find partial matches.[2]
    • Avoid using general fields. Avoid using fields like the date or location to reduce clutter when comparing entries.
    • Without enough fields to make a distinction between records, or with fields that are too general, you'll get a lot of duplicate results.
  8. Select additional fields to view. An additional field or two can help you decide if the data is actually duplicate. For example, an Order ID field will help you determine if the same name twice are separate entries. Include at least one field to help make this distinction and prevent accidental data loss.
  9. Create the query. You'll be prompted to give the query a name. Click "Finish" to see the results.
  10. Review your results carefully. Any potential duplicates based on your criteria will be displayed. Go through each of the results and use the knowledge you have about your company to decide if the entry is a duplicate. Make absolutely sure that a record is a duplicate before you remove it.
    • If you can't decide, recreate the query with an additional field to help you make your decision.
  11. Delete duplicate records. Right-click on the left column and select "Delete Record" to remove a duplicate. You can select multiple records to delete them all at once.[3]
    • You may want to merge some data from one of the duplicate records into the record you plan to keep.
    • Make sure to not delete all of the records that appear on the duplicate result list, or you won't have an original record left.


Related Articles

Sources and Citations