logo
search
Others

Fix Access Error: No Unique Index for Referenced Field

Phi Hung VoPhi Hung Vo Oct 22, 2026 868 views

Question details

The user needs to resolve an error in Microsoft Access preventing the creation of table relationships due to missing unique indexes.

How to Fix Access Error: No Unique Index Found for the Referenced Field
Product
Microsoft Access
Device & OS
not provided
Scenario
Setting up one-to-many or one-to-one relationships between tables in the database.
Observed behavior
Microsoft Access displays a 'no unique index found' error when attempting to relate tables, indicating the referenced primary table field lacks unique values.
Before you start

Ensure you close all active forms, queries, and reports that might be locking the tables you need to edit before modifying table designs.

Solution 1Recommended

Configure a Unique Index for One-to-Many Relationships

Ensure the referenced field on the primary ('one') side of your relationship is set as a primary key or has a unique index.

In a one-to-many relationship, the primary table must have a uniquely identifiable field so Access knows exactly which parent record is being referenced.

1
Open Table Design View

In the Access Navigation Pane, right-click the primary table (the 'one' side of your relationship) and select 'Design View'.

2
Select the Target Field

Click the row selector for the field you want to use in your relationship.

3
Assign Primary Key

If this field should be the primary key, click the 'Primary Key' icon on the Design ribbon. This automatically enforces uniqueness.

4
Set Unique Index Manually

If you do not want to set it as a primary key, look at the Field Properties pane at the bottom. Find the 'Indexed' property and change it to 'Yes (No Duplicates)'.

5
Save and Recreate Relationship

Save the table, close Design View, and attempt to recreate the relationship in the Database Tools tab.

Configure a Unique Index for One-to-Many Relationships
Foreign Key Indexing: The foreign-key field on the 'many' side of the relationship should have its Indexed property set to 'Yes (Duplicates OK)' or 'No'.
Free Microsoft Office alternative

Looking for a Free Microsoft Office Alternative?

While Microsoft Access handles databases, WPS Office is an excellent free alternative for your documents, spreadsheets, and presentations. Enjoy a lightweight suite that fully supports Microsoft formats without the costly subscription fees.

  1. 1. Download the Installer: Visit the official WPS Office website and click the free download button for your operating system.
  2. 2. Install WPS Office: Run the downloaded installation file and follow the simple on-screen instructions.
  3. 3. Start Creating: Open WPS Office to instantly view and edit your existing Microsoft Office files.
Fully compatible with Microsoft Word, Excel, and PowerPoint formats (.docx, .xlsx, .pptx).Lightweight software design that runs smoothly even on older computers.Familiar, intuitive user interface requires zero learning curve to migrate.Built-in PDF editing tools for seamless document management.
microsoft office alternative - wps office

Frequently Asked Questions

Why does Access require a unique index for relationships?

Microsoft Access needs a unique index to reliably identify matching records between tables. If the primary table's field is not unique, Access cannot accurately enforce a one-to-many or one-to-one relationship, as it wouldn't know which parent record to link to.

How do I check if my Access table field has duplicate values?

You can use the 'Find Duplicates Query Wizard'. Navigate to the Create tab, click 'Query Wizard', and select 'Find Duplicates Query Wizard'. Follow the prompts to scan the specific table and field for duplicate entries.

Can I enforce referential integrity without using a primary key?

Yes. As long as the referenced field in the primary table has a unique index (where the Indexed property is set to 'Yes (No Duplicates)'), you can successfully enforce referential integrity in your relationship even if the field is not strictly defined as the primary key.