HELP! Run-time error; can't go to specified record

M

MB

Hi experts!

I have a database that opens to a switchboard that has two buttons:
Data Entry
Reports

When "Data Entry" is clicked, I get: run-time error "2105" You Can't Go To
Specified Record. It is supposed to open to a new record. The debug
highlights the following:

DoCmd.GoToRecord , , acNewRec

It was working fine all morning, then all of a sudden this is happening.
Please Help. I am using Access 2003.

Thank you!
 
J

Jeff L

If your form is set to be a data entry form, you don't even need that
line of code. It should open to a new record automatically. Look at
the properties of your form and click the Data tab. The Data Entry
field should be set to Yes. Delete that line of code and try again.
Hope that helps!
 
Top