Fix Access Error: No Unique Index for Referenced Field
Question details
The user needs to resolve an error in Microsoft Access preventing the creation of table relationships due to missing unique indexes.

- 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.
Ensure you close all active forms, queries, and reports that might be locking the tables you need to edit before modifying table designs.
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.
In the Access Navigation Pane, right-click the primary table (the 'one' side of your relationship) and select 'Design View'.
Click the row selector for the field you want to use in your relationship.
If this field should be the primary key, click the 'Primary Key' icon on the Design ribbon. This automatically enforces uniqueness.
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)'.
Save the table, close Design View, and attempt to recreate the relationship in the Database Tools tab.

Establish Unique Indexes for One-to-One Relationships
For a one-to-one relationship, both fields involved in the join must have unique indexes to prevent multiple records from linking.
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. Download the Installer: Visit the official WPS Office website and click the free download button for your operating system.
- 2. Install WPS Office: Run the downloaded installation file and follow the simple on-screen instructions.
- 3. Start Creating: Open WPS Office to instantly view and edit your existing Microsoft Office files.

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.




