runtime error 3021 No current record

  • Thread starter Thread starter Guest
  • Start date Start date
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!
 
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.
 
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.
 
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
 
Back
Top