Going back to the original command

  • Thread starter Thread starter mclay
  • Start date Start date
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.
 
Hi

Put this OnClick of the button


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