G
Glenn McIntosh
Hi
I've looked around for this but can't dig up a solution. I have a form
called frmProjectDetails based on a table tblProjectDetails. It
contains a subform called frmPeopleInvolved which writes to a table
called tblPeopleInvolved. The tables are linked 1 to many with
referential integrity set. The tables are linked with autonumber
fields.
The problem is I can't write a record to the subform (which is
embedded in the main form) because a message pops up as soon as i
click back to the main form that says "You cannot add or change a
record as a related record is required in table 'tblPeopleInvolved'.
This makes no sense to me as this is the table that I am actually
entering data into, via the sub form (I though it might be a refernece
to the parent record not being saved yet, but it mentions the wrong
table, plus the parent record IS saved, and not dirty).
I have made all key fields visible and I can see that as I start to
enter a record in the subform the fields are populated with what
appears to be the correct autonumbers to link the child to the parent.
But still the above message pops up when it goes to write the data.
Any idea what I am doing wrong?
Glenn
I've looked around for this but can't dig up a solution. I have a form
called frmProjectDetails based on a table tblProjectDetails. It
contains a subform called frmPeopleInvolved which writes to a table
called tblPeopleInvolved. The tables are linked 1 to many with
referential integrity set. The tables are linked with autonumber
fields.
The problem is I can't write a record to the subform (which is
embedded in the main form) because a message pops up as soon as i
click back to the main form that says "You cannot add or change a
record as a related record is required in table 'tblPeopleInvolved'.
This makes no sense to me as this is the table that I am actually
entering data into, via the sub form (I though it might be a refernece
to the parent record not being saved yet, but it mentions the wrong
table, plus the parent record IS saved, and not dirty).
I have made all key fields visible and I can see that as I start to
enter a record in the subform the fields are populated with what
appears to be the correct autonumbers to link the child to the parent.
But still the above message pops up when it goes to write the data.
Any idea what I am doing wrong?
Glenn