Calling a menu item through code

B

Bdavis

1) generally speaking, is there a MS whitepaper or something that explains
how to do this?

2) Specifically, I've installed Adobe 7 which creates it's own pull-down
menu in Access. Is there a way to call items from this pull-down menu
through code?
 
A

Albert D.Kallal

Normally, when you create custom menus, those menus you make will call your
VBA code in the form's module, or a standard module.

So, generally speaking, menu buttons call code, not the other way around!!!

However, you can "fire" a button on a menu bar.

CommandBars("MyMenuBar").Controls("FirstSet).Controls("buttion1").Execute

The above would fire a button called buttion1, in a menu bar called
"MyMenuBar"

The sub-menu is "FirstSet"

and the button is called buttion1

For each "drill down" menu, just use the controls collection as a above....
 
Top