[AccessD] Calling(activating) menu add-in from custom menu etc.

Shamil Salakhetdinov shamil at smsconsulting.spb.ru
Tue Feb 18 13:02:01 CST 2003


Hi All,

I'd like to call menu add-in from custom menu-/tool-bar.
The following "trick" does seem to work in A97/A2K/AXP but maybe somebody
here knows something even more trickier?

"Trick" details:

- 1. install menu add-in as usual using Add-Ins Manager or by custom
installation code - this will add a menu entry for your add-in under
Tools->Add-Ins;
- 2. open your database
- 3. now switch to toolbars' customize mode
- 4. create custom toolbar/menubar
- 5. copy your add-in's menu entry from Tools->Add-Ins to your custom menu
or toolbar and change caption and other properties as desired;
- 6. close database
- 7. reopen database
- 8. try to activate add-in via your custom toolbar/menubar - nothing
happens
- 9. activate add-in once via Tools->Add-ins
- 10. try again to activate add-in via your custom toolbar/menubar - it
works now (and if you use Run method to call functions from the add-in
module where your add-in entry function is located then they are called OK
too)...

The sequence above seems almost what "doctor ordered" but I'd like to find a
way to skip the step #9 - any suggestions?

Note: it should work in Acc97, A2K and AXP. And of course I don't want to
set references to custom add-ins.

TIA for any info,
Shamil

--
e-mail: shamil at smsconsulting.spb.ru
Web: http://www.smsconsulting.spb.ru/shamil_s




More information about the AccessD mailing list