Hi
This is probably an easy fix, but I have a basic command button on a form to add new record, but after a new record is added, I want the cursor to be a certain field. Thanks for your help.
this is the code behind the button:
Private Sub addnew_Click()
On Error GoTo Err_addnew_Click
DoCmd.GoToRecord , , acNewRec
Exit_addnew_Click:
Exit Sub
Err_addnew_Click:
MsgBox Err.Description
Resume Exit_addnew_Click
End Sub
Enrique
This is probably an easy fix, but I have a basic command button on a form to add new record, but after a new record is added, I want the cursor to be a certain field. Thanks for your help.
this is the code behind the button:
Private Sub addnew_Click()
On Error GoTo Err_addnew_Click
DoCmd.GoToRecord , , acNewRec
Exit_addnew_Click:
Exit Sub
Err_addnew_Click:
MsgBox Err.Description
Resume Exit_addnew_Click
End Sub
Enrique