J
Jacqueline
I have installed an add new recod button on my form (Access 2003), I would
like to send the user to the top of the new record once the form goes to new,
I have tried a goto control macro but cannot get it to work, and it interfers
with going to a new record. Below is the VB code for the button, and anyone
tell me either how to create the correct macro and what event it would sit
on, or the code to allow the form to send the user to the beginning of the
form once it goes to new.
The name of the control I to goto is: "Level"
Thanks in advance for any help offered
Private Sub cmdNew_Click()
On Error GoTo Err_cmdNew_Click
DoCmd.GoToRecord , , acNewRec
Exit_cmdNew_Click:
Exit Sub
Err_cmdNew_Click:
MsgBox Err.Description
Resume Exit_cmdNew_Click
End Sub
like to send the user to the top of the new record once the form goes to new,
I have tried a goto control macro but cannot get it to work, and it interfers
with going to a new record. Below is the VB code for the button, and anyone
tell me either how to create the correct macro and what event it would sit
on, or the code to allow the form to send the user to the beginning of the
form once it goes to new.
The name of the control I to goto is: "Level"
Thanks in advance for any help offered
Private Sub cmdNew_Click()
On Error GoTo Err_cmdNew_Click
DoCmd.GoToRecord , , acNewRec
Exit_cmdNew_Click:
Exit Sub
Err_cmdNew_Click:
MsgBox Err.Description
Resume Exit_cmdNew_Click
End Sub