one to one relationship?

shrndegruv

Registered User.
Local time
Yesterday, 21:56
Joined
Sep 8, 2004
Messages
58
I cannot set a one-one relationship ... Ive defined relationships, but when I bring up the edit box it always says one to many...how do I change relationships between table to be one to one?
 
Can you zip it down and post it?

kh
 
The type of relationship specified is the only type possible with the data structure of the tables - a one-one rlationship can only be set-up between primary keys which match completely i.e. the number of PK fields have to match, if composite PKs are used.

If you're linking to a non-PK field, or only part of a PK then a one-many relationship will be possible. If you want a non-PK field to be unique, just set no duplicates, and then setup a one-many with the PK of the other table - which will act like a one-one.

Something I learned the hard way!?
 

Users who are viewing this thread

Back
Top Bottom