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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

referential integrity, control 1-M, 1-1

Status
Not open for further replies.

Ronze55

MIS
Jul 9, 2004
54
0
0
US
Hi all,

I would like to use the referential integrity functions of ms access however I am having some difficulties controlling the options.

I have a few relationships between two tables which are 1-1 however when I pick cascade update, or cascade delete access makes them into 1-M

how can I control this option?

thanks in advanced,
Ronze
 
If the tables are truly 1 - 1 then they could be put in the same table. There is no need to separate them.
 
how can I tell access they are truelly 1-1 and not 1-M?
I should mention data has not been added yet

thanks
Ronze
 
if they are in different tables, access assumes they are not truely 1-1

--------------------
Procrastinate Now!
 
is there anyway to limit the number of updates per relation then?

ronze
 
I think you should be able to implement 1-1 and retain referential integrity...

have a look at the 2 tables, is there something in one that suggests anything other than 1-1?

try to look for a logical constraint in one that would not allow a record to be deleted, while in the other table, there's no such constraint...

--------------------
Procrastinate Now!
 
possibly in the foriegn keys. I'll look into that and let you know

thanks!
ronze
 
If they are truly 1-1, shouldn't they have the same primary keys?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top