Open form to new record

G

goodkat

I'm a little rusty with Access, and I'm learning Access 2007. I am trying to
open a form to a new record, not to the first record, but I want to be able
to scroll back through the records, so the Data Entry property isn't what I
need. Any ideas?
 
G

goodkat

I found it - I don't know if there is an easier way, but in the coding for
the button to open the form, I put: DoCmd.GoToRecord , , acNewRec
 
J

John W. Vinson

I found it - I don't know if there is an easier way, but in the coding for
the button to open the form, I put: DoCmd.GoToRecord , , acNewRec

That'll usually work, but for safety's sake specify what object you mean. You
might have some other form opening:

DoCmd.GoToRecord acDataForm, "nameoftheform", acNewRec

explicitly specifies WHAT you want to do.
 

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