Access 2010: Create custom popup menu to run custom functions
Posted on 2012-08-15
I need some help with this.
I've found out that you need a reference to the Office Object Library and then create a "commandbar" to achieve this, but the code examples I can locate just adds standard Access/Office commands to the menu using "secret" values.
My popup should be displayed when right-clicking the form pane outside the controls.
It should contain a few menu entries, say:
When clicking one of these, a function of mine should be called, like:
I've managed to create a shortcutmenu (macro) but, when I right-click, no menu is shown - the macro is executed right away.
I would prefer the menu to be created as "temporary".