Form opening to new record

J

Jim

I have a form that opens to a new record. I want the form to open to the
first record. I've tried some of the code posted here, such as
docmd.gotorecord,,acfirst, but it's not working. Any suggestions?
Thanks,
Jim
 
M

Marshall Barton

Jim said:
I have a form that opens to a new record. I want the form to open to the
first record. I've tried some of the code posted here, such as
docmd.gotorecord,,acfirst, but it's not working. Any suggestions?


Check the form properties AllowEdits and DataEntry. Or
maybe you are opening the form with the DataMode argument
set to acFormAdd.
 
J

John W. Vinson

I have a form that opens to a new record. I want the form to open to the
first record. I've tried some of the code posted here, such as
docmd.gotorecord,,acfirst, but it's not working. Any suggestions?
Thanks,
Jim

Check the form's Properties, and make sure that the "Data Entry" property is
set to No. If it's Yes, the form will indeed open to the new record and
conceal any existing records.
 

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