Open a form at a new record

  • Thread starter Thread starter gavin
  • Start date Start date
G

gavin

I seem to recall this was asked fairly recently but I can't find the post.
How do I open a form with a new (blank) record. I know if I set the form's
Data Entry property to Yes I get a new record but in this case I can't see
the other records already entered into my table. Can anyone tell me how to
do this?


Regards,


Gavin
 
Put the following code in the Open event of the form:
DoCmd.GoToRecord,,acNewRec
 
Just what I need - many thanks! Can I just ask what the ",," does?


Regards,



Gavin
 
Look at the GoToRecord Method n the Help file. The commas are placeholders
for optional parameters.

Steve
PC Datasheet
 
If you ever need outside help on any projects, be sure to keep me in mind.

Steve
 

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