DoCmd.DoMenuItem How do you know 10 = Find??

  • Thread starter Thread starter Scott
  • Start date Start date
S

Scott

I've looked and looked and cannot point to how to
deturmine that DoCmd.DoMenuItem acFormBar, acEditMenu,
10, , acMenuVer70 refers to the "Find" of the Edit Menu.
Any help would be greatly appreciated.

Scott in Charlotte, NC
 
Scott said:
I've looked and looked and cannot point to how to
deturmine that DoCmd.DoMenuItem acFormBar, acEditMenu,
10, , acMenuVer70 refers to the "Find" of the Edit Menu.
Any help would be greatly appreciated.

DoCmd.DoMenuItem is actually the "old" way and is only supported for
backward compatibility. For some reason the wizards still write code using
it though (at least in A97).

Look at DoCmd.RunCommand. It has constants to provide all of the old
"MenuItem" stuff and is much cleaner and easier to understand. In your case
the command is...

DoCmd.RunCommand acCmdFind
 

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