I have two subforms on a main form. When I move out of the last control of the first subform, I use the following code to move to the first control of the second subform:
Forms!frmFMVisit!frmSubFamilyEthnicDetails.SetFocus
This is giving me problems in that it appears that moving out of the control in this way seems to be creating a record in the table on which the first subform is based.
I get the following message:
'Cannot the value 'NULL' into column 'DoB'; column does not allow nulls. INSERT fails.'
I'm not sure of what I'm doing wrong here. Is there a way to navigate between subforms without this happening?
Thanks for any help.
Forms!frmFMVisit!frmSubFamilyEthnicDetails.SetFocus
This is giving me problems in that it appears that moving out of the control in this way seems to be creating a record in the table on which the first subform is based.
I get the following message:
'Cannot the value 'NULL' into column 'DoB'; column does not allow nulls. INSERT fails.'
I'm not sure of what I'm doing wrong here. Is there a way to navigate between subforms without this happening?
Thanks for any help.