A
an
Hi!
I have a form with a command button to alert for the obligator fulfilling
the next fields. The form open when AfterUpdate the previous to the obligator
ones.
When click OK, I would like the cursor jumped for next field to fill.
I used the code...
Private Sub cmdOK_Click()
Dim GoToControl As Control
intMsgBox = vbOK
GoToControl "txtNAI", "NAI"
DoCmd.Close
End Sub
where txtNAI is ControlName of the NAI field, and txtNUI is ControlName of
the NUI field
but it gives error.
I need your help for this.
Thanks in advance.
an
I have a form with a command button to alert for the obligator fulfilling
the next fields. The form open when AfterUpdate the previous to the obligator
ones.
When click OK, I would like the cursor jumped for next field to fill.
I used the code...
Private Sub cmdOK_Click()
Dim GoToControl As Control
intMsgBox = vbOK
GoToControl "txtNAI", "NAI"
DoCmd.Close
End Sub
where txtNAI is ControlName of the NAI field, and txtNUI is ControlName of
the NUI field
but it gives error.
I need your help for this.
Thanks in advance.
an