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
 

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