Enabling next button

Brahim

New member
Local time
Today, 11:05
Joined
Jun 21, 2003
Messages
8
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
 

Users who are viewing this thread

Back
Top Bottom