Hi,
I have a form that contain a subform as a last control, i want when i finish entering data on this subform, to enable the next button (in the main form)
Mainform : frmPage1
subForm: SubHolder
Next Button: cmdNext
i put this code but it's not working (error)
Private Sub chlSubHolder_Exit(Cancel As Integer)
Forms!frmPage1!SetFocus
DoCmd.GoToControl "cmdNext"
Me.cmdNext.Enabled = True
End Sub
please can someone help me
I have a form that contain a subform as a last control, i want when i finish entering data on this subform, to enable the next button (in the main form)
Mainform : frmPage1
subForm: SubHolder
Next Button: cmdNext
i put this code but it's not working (error)
Private Sub chlSubHolder_Exit(Cancel As Integer)
Forms!frmPage1!SetFocus
DoCmd.GoToControl "cmdNext"
Me.cmdNext.Enabled = True
End Sub
please can someone help me