Hi,
I have a Acc2010 database with a main table tbl_Case and half a dozen or so other tables each of which has a 1-1 relationship with tbl_Case. Each table has a field called CaseID which is the primary key. (The reason I haven't got this as one huge table is that the number of fields would be enormous and not all sections of the case record will be completed, so easier to have each section as a separate table.)
My question is this:
I want to set referential integrity so that I can add a record to tbl_Case without needing a related record in each of the other tables. BUT I want to prevent each of the other tables having a record which does not have a related record in tbl_Case. Basically the tbl_Case record will always be populated first and then each of the other tables may or may not have a record populated. I have set up relationships with referential integrity as shown in the attached jpeg, with tbl_Case on the left side of the window.
This seems to allow me to do what I need. But I am not sure why it allows tbl_Case records, but not records in the related tables when the relationship is 1-1. Have I done it correctly? Join properties on each relationship are set to 1 (inner join).
Thanks for any input,
Jim
I have a Acc2010 database with a main table tbl_Case and half a dozen or so other tables each of which has a 1-1 relationship with tbl_Case. Each table has a field called CaseID which is the primary key. (The reason I haven't got this as one huge table is that the number of fields would be enormous and not all sections of the case record will be completed, so easier to have each section as a separate table.)
My question is this:
I want to set referential integrity so that I can add a record to tbl_Case without needing a related record in each of the other tables. BUT I want to prevent each of the other tables having a record which does not have a related record in tbl_Case. Basically the tbl_Case record will always be populated first and then each of the other tables may or may not have a record populated. I have set up relationships with referential integrity as shown in the attached jpeg, with tbl_Case on the left side of the window.
This seems to allow me to do what I need. But I am not sure why it allows tbl_Case records, but not records in the related tables when the relationship is 1-1. Have I done it correctly? Join properties on each relationship are set to 1 (inner join).
Thanks for any input,
Jim