Contro error

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top