Prevent Duplicate Records in a Microsoft Access Append Query
Question details
Append only new records from a pending table to an Access destination table.

- Product
- Microsoft Access
- Device & OS
- not provided
- Scenario
- An append query transfers records from a pending table to a destination table and may be run repeatedly.
- Observed behavior
- The query works the first time but adds duplicate records on subsequent runs.
Identify the fields that define a unique record, such as EmployeeID and ProjectID. Check the destination table for existing duplicate combinations and resolve them before creating a unique index.
Create a Unique Multi-Field Index on the Destination Table
Use a unique index to prevent duplicate field combinations from being added, including when the append query is run again.
In the Access Navigation Pane, right-click the destination table and select Design View.
On the Table Design tab, select Indexes.
In a blank row, enter an index name and select the first identifying field under Field Name. On the next row, leave Index Name blank and select the second identifying field. Add further fields on subsequent blank-name rows if needed.
Select the first row of the new index. In Index Properties, set Unique to Yes, then close the Indexes window and save the table.
Open the append query and select Run. Access will prevent records with an existing indexed combination from being added.

Filter Existing Records Out of the Append Query
Use a NOT EXISTS condition to select pending records whose identifying combination is not already in the destination table.
Review Record Lists with WPS Spreadsheets
WPS Office is a free, lightweight alternative with a familiar interface for working with Office files. Open an exported Excel record list in WPS Spreadsheets to review data as part of a move between office suites. WPS does not replace Access or fix its append queries.

Frequently Asked Questions
Which fields should I include in the unique index?
Include the fields that together define a duplicate in your destination table. For example, use EmployeeID and ProjectID if an employee should appear only once per project.
Why can't Access save my unique index?
The destination table may already contain duplicate combinations of the selected fields. Find and resolve those duplicates, then return to Table Design > Indexes and save the unique index again.
Will the unique index stop all records from being appended?
It prevents records that violate the unique index from being added. Access may report key violations for those records; check the append results and any warning before rerunning the query.
Do I need a unique index if I use NOT EXISTS?
A unique index is still recommended. NOT EXISTS filters combinations already in the destination, but it does not by itself prevent duplicate combinations within the pending table from being selected.




