Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

one-tone relationship 1

Status
Not open for further replies.

asafblasberg

Programmer
Jun 22, 2004
21
US
Hello, I have a one-to-one relationship in in access project adp. problem is, how do you make sure that the foreign and primary keys are ALWAYS the same that they MATCH... is there some kind of rule you can do?

Asaf
 
I would do two things:

-- Enforce referential integrity in the relationship, so that the key in one table cannot be amended, or a record deleted, without a corresponding change to the other table.

-- Make sure users do all record creation and updating via a form. Use VBA code to ensure (for example) that when a record is created in table A, a record with the identical key is created in table B



Bob Stubbs
 
And of cause you really need toanswer the question WHY do you have the table split in the first place ?

If you are ensuring that the referential integrity is there then whynot have it all in one table ?





G LS
spsinkNOJUNK@yahoo.co.uk
Remove the NOJUNK to use.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top