Open to an empty "new" record?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Having built a data entry form with command buttons including "add new
record" I woudl now like the form to open to a blank "new" record rather than
always opening up to the first record in the database. Anyone have the
answer? Thank you.
 
On the open event of the form you can either put in the following code:

DoCmd.GoToRecord , , acNewRec

OR

You could make a call to the click event of the command button Add new
record that you have on the form.

Steve Huff
http://www.huffs.us
 
Thanks for this! Have been scratching my head to get this to work as our
Fire Department database always opened to the first record and lots of people
accidentally start to enter information overwriting the first record. This
tip fixed our problem!
 

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

Back
Top