A
aardvick
I have 3 tables that are in one-to-one relationship (one parent, 2 children).
I have a form based on a query that joins all three together. My form has
no subforms, but is organized with 3 tabs - one corresponding to each table.
Data entry works fine for new records when at least one field from each tab
is filled in (ie a new record is created for each of the three tables). Data
entry works fine when only fields for the parent table are filled in (a new
record is created for parent table only).
The problem comes when I use the form to add data to the child table LATER -
when the parent record has already been created (as in case 2 above).
Sometimes it works fine and a new record is created in the child table with
the appropriate FK, and sometimes I get the following error:
"You cannot add or change a record because a related record is required in
table 'parent table'."
Hello, there *is* already a parent record there. What is going on?
Many thanks in advance to any who reply!
I have a form based on a query that joins all three together. My form has
no subforms, but is organized with 3 tabs - one corresponding to each table.
Data entry works fine for new records when at least one field from each tab
is filled in (ie a new record is created for each of the three tables). Data
entry works fine when only fields for the parent table are filled in (a new
record is created for parent table only).
The problem comes when I use the form to add data to the child table LATER -
when the parent record has already been created (as in case 2 above).
Sometimes it works fine and a new record is created in the child table with
the appropriate FK, and sometimes I get the following error:
"You cannot add or change a record because a related record is required in
table 'parent table'."
Hello, there *is* already a parent record there. What is going on?
Many thanks in advance to any who reply!