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
 
Back
Top