Click to See Complete Forum and Search --> : dbase problem


Karok
October 16th, 2001, 05:50 PM
I have a database program that I inherited and I am getting "Run time error 2105. You can't go to the specified record. You may be at the end of the database." The problem is that I am getting this error on the following code:


DoCmd.GoToRecord , , acNewRec




The info on this function in MS Access help is pretty sketchy. Basically, it looks like this is trying to create a new record in the current form. So my question is what would cause this to fail? The same code is in several of the other forms I am working on, and it works fine. Any ideas?


I will rate all useful suggestions :)

In reply to:

A man who asks a question is a fool for 15 minutes. A man who doesn't ask a question is a fool for a lifetime. -Chinese Proverb




Karok

jn8230
October 16th, 2001, 06:06 PM
Is it possible that the particular form you are in is set to Allow Additions = No?

Jason

Karok
October 16th, 2001, 07:02 PM
No, AllowAdditions=True

I will rate all useful suggestions :)

In reply to:

A man who asks a question is a fool for 15 minutes. A man who doesn't ask a question is a fool for a lifetime. -Chinese Proverb




Karok