Runtime Error '2046' ... "SaveRecord" is not availble now

G

Guest

I have an access 2000 database that I just inherrited. Everything has been
working fine until today. I have a subform that has a drop down list that
after performs the follwoing:
DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70

it is at this line that I encounter the runtime error '2046' The action or
command 'SaveRecord' is not available now.

I have debugged and debugged and am at a loss... Why would this "all of a
sudden" start to occur? What could I have possbly have done that would cause
this to break?

Any insight or advice would be greatly appreciated!
Thanks
 
G

Guest

So I jusr tried the
If Me.Dirty = true then Me.Dirty = fals
trick and it worked.... but I am still curious as to why?

Thanks again
 
G

Guest

Hi Tsuki,
Are you getting this message whilst you are in "Break" mode debugging? If so
then that is why, you cannot run that command in Break.
If not, try "DoCmd.RunCommand acCmdSaveRecord" - that is the MS preferred
method, the other method is for backwards compatability.
:)
 

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