ACC2000: Can't Create Relationship with Multiple-Field Primary KeyID: Q208353
|
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.
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.
There are two ways to work around this error:
Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article.
Table:
------------------
Field Name: A
Data Type: Text
Field Name: B
Data Type: Text
Index Name Field Name Sort Order
------------------------------------
PrimaryKey B Ascending
A Ascending
Table/Query: tblOne Related Table/Query: tblTwo
-------------------------------------------------
A A
B B
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.
Additional query words: index multiple field primary key prb pra
Keywords : kberrmsg kbdta RltRef
Version : WINDOWS:2000
Platform : WINDOWS
Issue type : kbbug
Last Reviewed: May 13, 1999