Going back to the original command

M

mclay

I've created a database and I'm pleased with the way it looks and functions,
but I want to know how to go back to the first command after clicking the add
record command (add record being the last command). I want the cursor to
automatically go the the first item for entry.
 
W

Wayne-I-M

Hi

Put this OnClick of the button


Private Sub ButtonName_Click()
DoCmd.GoToRecord , , acNewRec
Me.ControlName.SetFocus
End Sub
 
Top