I have two tables with a one-to-one relationship. I’m using a form and subform to allow the user to enter data. When I test it by adding data in the text boxes on the main and sub forms, I find that a new record is added to the table bound to the main form, but not to the one bound to the subform.
The form and the subform are linked on primary key/foreign key; the primary key for the main form is autonumber, and text boxes on the main form and the subform are bound to fields on their respective tables. On the main form, Allow Additions and Allow Deletions are set to Yes. The Record Type is Dynaset. These properties are the same for the subform. On the subform, the Enabled property is set to Yes, and the Locked Property is No.
What am I missing?
thanks,
Henry
The form and the subform are linked on primary key/foreign key; the primary key for the main form is autonumber, and text boxes on the main form and the subform are bound to fields on their respective tables. On the main form, Allow Additions and Allow Deletions are set to Yes. The Record Type is Dynaset. These properties are the same for the subform. On the subform, the Enabled property is set to Yes, and the Locked Property is No.
What am I missing?
thanks,
Henry