Error messages do not appear when you use Visual Basic for Applications code to run a procedure in an Access 2002 database (275102)
The information in this article applies to:
This article was previously published under Q275102 Advanced: Requires expert coding, interoperability, and multiuser skills.
This article applies to a Microsoft Access database (.mdb) and to a Microsoft Access project (.adp).
SYMPTOMSWhen you use Microsoft Visual Basic for Applications (VBA) code to run a procedure in a Microsoft Access 2002 database, the code does not return an error message or stop running as you expect.
This problem occurs when the procedure contains an unhandled error, the Err.Raise statement, or the Stop statement.CAUSE
This problem occurs because the database is compiled by Access 2002 and still contains the Access 2000 object library information. VBA cannot enter break mode until VBA first decompiles the VBA project and then references the object library information for the current version of Access.
RESOLUTION
With the database open in Access 2002, open the Visual Basic Editor. This action decompiles the VBA project and references the Access 2002 object library information.
REFERENCESFor more information about handling errors at run-time, click Microsoft Visual Basic Help on the
Help menu, type handling errors in the Office Assistant or
the Answer Wizard, and then click Search to view the topics
returned.
Modification Type: | Minor | Last Reviewed: | 10/11/2006 |
---|
Keywords: | kbprb KB275102 |
---|
|