Need to fix .DoMenuItem for Access 2007


C

Capt James Cook

I'm working on an inherited database that won't run now that I've upgraded to
Access 2007. In reading the newsgroup, I realize that DoMenuItem is an old
holdover from Access 97 and I need to replace it. Can someone help me?

The current coding is:
DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, acMenuVer70

I am getting the following error:
Run-time error '2065': The name for the menu, command, or subcommand you
entered is invalid.

I need:
1) quick help fixing this problem and
2) is there a reference for this type of error corrections because I suspect
the original programmer used this in numerous different forms, modules, etc.

Thank you for your time and assistance.
Sincerely,
Capt. James Cook
 
Ad

Advertisements


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