I am trying to develop an application for others to use but every so often a user locks up the main data entry form by entering a value into the sub form before they have entered the data into the main form that creates the record the subform data will be linked to.
I would like to deactivate the subforms until data is entered in the main form and the Auto Number ID is updated.
I have tried setting the control Enabled Property to NO then
Private Sub Form_AfterUpdate()
Me.TabCtl141.Enabled = True
End Sub
But it prevents the user from using the control on previously entered records and doesn't work until leaving the main form. Then the subform remains active when the user proceeds to the next New Record.
I would like to deactivate the subforms until data is entered in the main form and the Auto Number ID is updated.
I have tried setting the control Enabled Property to NO then
Private Sub Form_AfterUpdate()
Me.TabCtl141.Enabled = True
End Sub
But it prevents the user from using the control on previously entered records and doesn't work until leaving the main form. Then the subform remains active when the user proceeds to the next New Record.
Last edited: