Function called from command bar control runs three times in Access (207860)
The information in this article applies to:
- Microsoft Office Access 2003
- Microsoft Access 2000
This article was previously published under Q207860 For a Microsoft Access 97 version of this article,
see
162660. Advanced: Requires expert coding, interoperability, and multiuser
skills. This article applies to a Microsoft Access database (.mdb) and to a
Microsoft Access project (.adp). SYMPTOMS 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 the
class module of a form. When you call a procedure in a standard module in the OnAction property of a command bar control, the procedure runs only once.
STATUSMicrosoft has confirmed that this is a problem in
Access.
REFERENCESFor more information about adding custom buttons to a
toolbar, click Microsoft Access Help on the Help menu, type add a button to a toolbar in the Office Assistant or the Answer Wizard, and then click Search to view the topic.
Modification Type: | Minor | Last Reviewed: | 7/28/2006 |
---|
Keywords: | kbProgramming kbfunctions kbbug kbpending kbusage KB207860 kbAudDeveloper |
---|
|