Form opening to new record

  • Thread starter Thread starter Jim
  • Start date Start date
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
 
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.
 
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

Similar Threads

Going to first record 0
goto record 2
First record on sub form 2
On Error Problem 3
Problem DoCmd.GoToRecord with tabbed pages 1
Update Open Form 3
Trying to set textbox value in continuous form 7
Form Display 1

Back
Top