runtime error 3021 No current record

G

Guest

Hello,
I got this runtime error only when I run the db at home computer. The error
happened when created new record and stopped at line "doCmd.domenuitem
acformbar, aceditmenu, 6, , acmenuver70". This line of the code is under
cancel button. Can anyone help please? Thank you in advance!
 
A

Allen Browne

If this is a command button that is meant to undo any changes to the current
record in your bound form, you could try replacing the code with this:

If Me.Dirty Then Me.Undo

If that's not what you are doing, let us know.
 
G

Guest

That works, Thank you Allen.

Allen Browne said:
If this is a command button that is meant to undo any changes to the current
record in your bound form, you could try replacing the code with this:

If Me.Dirty Then Me.Undo

If that's not what you are doing, let us know.
 
G

Guest

May,

You might want to consider replacing all of your domenuitem commands.
Because the menus have changed from one version to another, these commands
become problematic to debug, and almost all of these can be replaced by some
other, more legible, command.

Dale
 

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


Top