My form is made up of multiple tables that have a 1-to-1 relationship. It also has a subform which is a 1-to-many relationship.
Adding a record from the form by filling in fields only from the main table works fine, but, if I fill in a field from another table, it sometimes works and sometimes doesn't.
It displays a message:
I've designed a sample DB with the same settings and layout and all and attached it here because I can't upload the original. Plus it will be easier to understand.
NOTE: I've just looked at the db I uploaded and it seems like the records have mixed up now.
Like, the address for record 6 is now assigned to record 3.
And it doesn't show record 1 or 2
What's going on.
Adding a record from the form by filling in fields only from the main table works fine, but, if I fill in a field from another table, it sometimes works and sometimes doesn't.
It displays a message:
Code:
You cannot add or change a record because a related record is required in table "tbl_Details"
NOTE: I've just looked at the db I uploaded and it seems like the records have mixed up now.
Like, the address for record 6 is now assigned to record 3.
And it doesn't show record 1 or 2
What's going on.
Attachments
Last edited: