Others

Prevent Duplicate Records in a Microsoft Access Append Query

Algirdas JasaitisAlgirdas Jasaitis Nov 25, 2026 869 views

Question details

Append only new records from a pending table to an Access destination table.

Prevent Duplicate Records in a Microsoft Access Append Query
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.
Before you start

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.

Solution 1Recommended

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.

1
Open the destination table

In the Access Navigation Pane, right-click the destination table and select Design View.

2
Open the indexes window

On the Table Design tab, select Indexes.

3
Add the index fields

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.

4
Make the index unique

Select the first row of the new index. In Index Properties, set Unique to Yes, then close the Indexes window and save the table.

5
Run the append query

Open the append query and select Run. Access will prevent records with an existing indexed combination from being added.

Create a Unique Multi-Field Index on the Destination Table
Check duplicate and missing values: Access cannot create the unique index while duplicate combinations already exist. If every identifying field must have a value, set its Required property to Yes in table Design View. When an append encounters duplicate keys, Access may report key violations.
Free Microsoft Office alternative

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.

Review exported record lists in WPS Spreadsheets.Open and edit Microsoft Excel XLSX files.Use a familiar interface to ease migration from Microsoft Office.Work with a free, lightweight office suite.
microsoft office alternative - wps office

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.