Error 2046 - The command SaveRecord isn't available now

S

Stefano Martino

Hi everybody,
I have a very simple form for inserting records.
There's a SaveRecord button on it (the code behind was
automatically generated by the Wizard).

Click on this button gives back an error (The command or
action 'SaveRecord' isn't available now) when I run the db
on a pc with Access 2000 version Italian, while it runs
perfectly on Access 2000 version English.

Can you help me?
Thanks in advance
 
A

Allen Browne

The command will not be available if the form is not dirty.
It may not be available if the form is a popup.

Try this instead of the wizard's DoMenuitem line:
If Me.Dirty Then
Me.Dirty = False
End If
 

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

Top