B
Bruce Hartsell
In Access 2003, I am trying to create a database with multiple linked tables.
I repeatedly get an error message such as "No unique index found for the
referenced field of the primary table." The message appears when I try to
"Enforce Referential Integrity" and "Cascade Update Related Fields."
I decided to try to solve the problem by creating a tiny database with two
tables as follows:
Table 1 (Name):
ID
FName
MName
LName
Status
Table 2 (Race):
ID
FName
MName
LName
Race
ID is set as the primary key in each table, with the data type as
Autonumber, the field size as Long Integer, and Index set as Yes, no
duplicates. FName, MName, and LName are each set with the same field size
(50) and the Index property as Yes, duplicates OK. (Actually, setting
indexing on the "name" fields does not seem to make a diference, since I've
tried it with and without indexing them.)
There are currently no data in the tables, although the same problem
occurred with data in the tables.
Any ideas?
--
Thanks,
Bruce Hartsell
Department of Social Work
California State University
Bakersfield, CA
I repeatedly get an error message such as "No unique index found for the
referenced field of the primary table." The message appears when I try to
"Enforce Referential Integrity" and "Cascade Update Related Fields."
I decided to try to solve the problem by creating a tiny database with two
tables as follows:
Table 1 (Name):
ID
FName
MName
LName
Status
Table 2 (Race):
ID
FName
MName
LName
Race
ID is set as the primary key in each table, with the data type as
Autonumber, the field size as Long Integer, and Index set as Yes, no
duplicates. FName, MName, and LName are each set with the same field size
(50) and the Index property as Yes, duplicates OK. (Actually, setting
indexing on the "name" fields does not seem to make a diference, since I've
tried it with and without indexing them.)
There are currently no data in the tables, although the same problem
occurred with data in the tables.
Any ideas?
--
Thanks,
Bruce Hartsell
Department of Social Work
California State University
Bakersfield, CA