J
Jerry
I have a parent/child form set up that's giving me an
error. Here's the background data:
Parent Form (frmActivateTeacherForSession)
Data is based on a query, which is based in part on
tblTeacherData, which has [TeacherKey] as the PK
(autonumber)
Allow Data Entry: No
No event procedures
Child Form (frmActivateTeacherForSessionSubform)
Data based on tblTeacherSessionData, which has the field
[TeacherKey]
There is an On Open procedure that sets the default value
for one of the fields (not the TeacherKey)
Master and Sub forms are linked on the field [TeacherKey]
Relationships:
tblTeacherData and tblTeacherSessionData have a one-to-
many relationship, based on [TeacherKey]
As soon as I hit the first key to enter data in the
subform, I get this error: "The LinkMasterFields property
setting has produced this error: 'The object doesn't
contain the Automation object 'tblTeacherData.'' After
that, I can add data. But then, when I try to close the
form, I get this message: "You cannot add or change a
record because a related record is required in table
tblTeacherData.
I don't understand what the "object" or the "Automation
object" the first error is referring to. The
Parent/Child linking seems to be working.
Sorry if this is confusing. What do I need to do to fix
this?
Thanks in advance.
Jerry
error. Here's the background data:
Parent Form (frmActivateTeacherForSession)
Data is based on a query, which is based in part on
tblTeacherData, which has [TeacherKey] as the PK
(autonumber)
Allow Data Entry: No
No event procedures
Child Form (frmActivateTeacherForSessionSubform)
Data based on tblTeacherSessionData, which has the field
[TeacherKey]
There is an On Open procedure that sets the default value
for one of the fields (not the TeacherKey)
Master and Sub forms are linked on the field [TeacherKey]
Relationships:
tblTeacherData and tblTeacherSessionData have a one-to-
many relationship, based on [TeacherKey]
As soon as I hit the first key to enter data in the
subform, I get this error: "The LinkMasterFields property
setting has produced this error: 'The object doesn't
contain the Automation object 'tblTeacherData.'' After
that, I can add data. But then, when I try to close the
form, I get this message: "You cannot add or change a
record because a related record is required in table
tblTeacherData.
I don't understand what the "object" or the "Automation
object" the first error is referring to. The
Parent/Child linking seems to be working.
Sorry if this is confusing. What do I need to do to fix
this?
Thanks in advance.
Jerry