F
fiaolle
Hi
Can I have a composite key and link it to a foriegn key which also is a
composite key? I have tried it, but when I'm trying to add referential
integrity to the link I get the error "No unique index found for the
referenced field of the primary table." What is the error, in other words? I
have both MovieID and MovieName as primarykeys because I have the same
number (ID) for more than one movie.
tbl_Movies
MovieID (PK)
MovieName (PK)
tbl_Categories
CategoryID (PK)
CategoryName
tbl_MovieCategories
MovieID (PK)
MovieName (PK)
CategoryID (PK)
Fia
Can I have a composite key and link it to a foriegn key which also is a
composite key? I have tried it, but when I'm trying to add referential
integrity to the link I get the error "No unique index found for the
referenced field of the primary table." What is the error, in other words? I
have both MovieID and MovieName as primarykeys because I have the same
number (ID) for more than one movie.
tbl_Movies
MovieID (PK)
MovieName (PK)
tbl_Categories
CategoryID (PK)
CategoryName
tbl_MovieCategories
MovieID (PK)
MovieName (PK)
CategoryID (PK)
Fia