Docmd.Menuitem in Access 2003 generates error

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi - I have this code DoCmd.DoMenuItem acFormBar, acRecordsMenu, acRefresh
in the "on change" event of a text box - when it kicks in I get an error
message saying there is an invalid name for the menu, command, or subcommand.
I'm suspecting that Access 2003 doesn't suuport this code. Any help is much
appreciated.
 
JP said:
Hi - I have this code DoCmd.DoMenuItem acFormBar, acRecordsMenu,
acRefresh
in the "on change" event of a text box - when it kicks in I get an error
message saying there is an invalid name for the menu, command, or
subcommand.
I'm suspecting that Access 2003 doesn't suuport this code. Any help is
much
appreciated.

Most (if not all) of that old DoMenuItem stuff can now be executed via the
RunCommand method of the DoCmd object.

DoCmd.RunCommand acCmdRefresh

ought to do it in this case. Unfortunately I'm unable to test at the
moment...
 

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

Back
Top