Article ID: 162660 - Last Review: January 19, 2007 - Revision: 3.1 ACC97: Function Called from Command Bar Control Executes 3 TimesThis article was previously published under Q162660 Advanced: Requires expert coding, interoperability, and multiuser skills.
On This PageSYMPTOMS
If you call a procedure in a form class module from the OnAction property
of a command bar control, the function runs three times.
RESOLUTION
Store the procedure in a standard module instead of in a form's class
module. When you call a procedure in a standard module in the OnAction
property of a command bar control, the procedure runs only once.
STATUS
Microsoft has confirmed this to be a problem in Microsoft Access 97.
MORE INFORMATIONSteps to Reproduce Behavior
REFERENCES
For more information about running a Visual Basic function from a button on
a custom toolbar, search the Help Index for "toolbar buttons, adding to
toolbars," or ask the Microsoft Access 97 Office Assistant.
| Article Translations
|

Back to the top
