ACC2000: Can't Create Relationship with Multiple-Field Primary Key (208353)
The information in this article applies to:
This article was previously published under Q208353 Novice: Requires knowledge of the user interface on single-user computers.
SYMPTOMS
When you try to create a relationship that enforces referential integrity,
and the relationship involves a multiple-field primary key, you may receive
the following error:
No unique index found for referenced field of primary table.
CAUSE
The order of the primary key fields in Design view of the table is
different from the order of the fields in the PrimaryKey index.
RESOLUTION
There are two ways to work around this error:
- Reorder the PrimaryKey fields in the index so that they appear in the same order as they do in Design view of the table.
-or-
- Order the field names in the Relationships dialog box to match the order of the field names in the PrimaryKey index.
STATUSMicrosoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article. REFERENCESFor additional information about using a multiple field primary key, click the article number below
to view the article in the Microsoft Knowledge Base:
209564 CC2000: Compound Indexes Must Restrict First Indexed Field
For more information about referential integrity, click Microsoft Access Help on the Help menu, type What is Referential Integrity in the Office Assistant or the Answer Wizard, and then click Search to view the topic.
Modification Type: | Major | Last Reviewed: | 6/29/2004 |
---|
Keywords: | kbbug kberrmsg kbnofix KB208353 |
---|
|