problem with code - runcommand

G

Guest

What is wrong with code? I just converted Access 97 to 2002 version and getting debug error on this line of code below. I change my DoMenuItem to RunCommand.
Do I have to change the ac codes to acCommand. Can someone out there give me the right code to make my code below with RunCommand? TIA

DoCmd.RunCommand acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70

Irine F
 
W

Wayne Morgan

You are using the newer RunCommand command with the syntax for the older
DoMenuItem command.
 

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