Open to an empty "new" record?

J

Jeff C

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.
 
S

Steve Huff

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
 
R

Rescue911

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!
 
Top