PeterDuthie
Programmer
It's a bit messy this one but I'm sure somebody must have done something like this before:
There's a main table which has (at the moment, but could have more later) two tables which hold details about the main table. These have a 1 to M relationship with the main table and we have the "enforce referential integrity" box ticked but not the other two.
I want to provide access to this db via a tab control on a form. The form is bound to the main table and subforms are going to control the data for the tables related to the main table *and* for some of the data for the main table.
It doesn't work because (as far as I can tell) the secondary forms need a reference to the main form's record ID which isn't available until the main form is closed (I think).
What would be a decent solution for this? I have some ideas about closing the main table (somehow) without closing the form - I'd really appreciate your help on this. On the otherhand if the design idea is fatally flawed I like to know ASAP so I don't waste my time and effort.
Cheers,
Peter
There's a main table which has (at the moment, but could have more later) two tables which hold details about the main table. These have a 1 to M relationship with the main table and we have the "enforce referential integrity" box ticked but not the other two.
I want to provide access to this db via a tab control on a form. The form is bound to the main table and subforms are going to control the data for the tables related to the main table *and* for some of the data for the main table.
It doesn't work because (as far as I can tell) the secondary forms need a reference to the main form's record ID which isn't available until the main form is closed (I think).
What would be a decent solution for this? I have some ideas about closing the main table (somehow) without closing the form - I'd really appreciate your help on this. On the otherhand if the design idea is fatally flawed I like to know ASAP so I don't waste my time and effort.
Cheers,
Peter