ACC: Cannot Trap ODBC Errors with Form OnError Property CodeLast reviewed: May 14, 1997Article ID: Q124395 |
The information in this article applies to:
SYMPTOMSAdvanced: Requires expert coding, interoperability, and multiuser skills. Even though you have specified event procedure code to trap errors in your form's OnError property, you still receive ODBC error messages.
CAUSEODBC error messages normally occur in two parts. The first part is
ODBC call failedfollowed by a second part such as:
[Microsoft][ODBC SQL Server Driver][SQL Server] <Server-specific error message>The first part of the error message can be trapped by the code specified in the OnError property, but the second part cannot. The second part of the error message appears on the screen after the event procedure code finishes running.
RESOLUTIONIf the ODBC error is triggered by a procedure that contains a routine to handle errors (rather than by a form), the procedure will be able to trap both parts of the error message.
STATUSMicrosoft has confirmed this to be a problem in Microsoft Access 2.0 and 7.0. This problem no longer occurs in Microsoft Access 97. |
Keywords : FmsEvnt kberrmsg kbusage
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |