RunTime Error 2105

Chipcom

Registered User.
Local time
Today, 11:08
Joined
Apr 13, 2006
Messages
63
Hi

I have this error when on:
PHP:
DoCmd.GoToRecord acDataForm, "PaycheckTable", acNewRec
Whent I trace with the debugger when the ENTER keyy is pressed event.

If I don't use the debugger I don't see any error.
This problem occurs when I check a specific checkbox and trying to go to a new record (Whith the other checkboxes I don't have a problem).

Another symotom:
When I use the next or new record buttons I don't have any problem.

How can I fix the problem?

Thanks
 
A 2105 error occurs when you can't go to a particular record. So, for example, if you are on the last record of a recordset and you try to go further, or if you try to add a new record when you can't add a new record (for example, if you are already on a new record and you try to go to a new record - but only if you do that via code because Access handles that one if you use the built-in navigation buttons).

So, you can trap for that error and return a more applicable message to the user.
 

Users who are viewing this thread

Back
Top Bottom