Capturing returned ODBC error message using form_Error

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



I have written an application with an Access front end to an Oracle Database.
All security and data validation is in the Oracle database, including
user-defined error messages. These error messages are returned as ODBC--
linked failed and, when occurring in a VBA module, the specific
Oracle-generated message may be retrieved from
dbEngine.errors(0).description. However when I try to access the error
message in dbEngine errors while in the forms.Errors event, it is not there.
I would very much like to capture it so that I can extract the meaningful
portion using mid, left and right and display it as a user-friendly message.

I know it is preserved somewhere in Access because, unless you make response
= acDataErrContinue, it displays in Access's own error message box after
form_error completes. Is there any way I can retrieve this message during
the forms_Errors event?

sjl
--
sjl
.



Relevant Pages

  • Re: Capturing returned ODBC error message using form_Error
    ... > I have written an application with an Access front end to an Oracle ... > All security and data validation is in the Oracle database, ... Is there any way I can retrieve this message during ...
    (microsoft.public.access.externaldata)
  • Re: MAX NUMBER
    ... Reiro wrote: ... i am entering dat in an access front end connect to an oracle database. ... how do retrieve the maximum value that is in the table. ...
    (comp.databases.oracle.misc)
  • Re: Retrieve size of db objects
    ... given a certain Oracle database, I need to execute queries/commands in ... order to retrieve the following information: ... Sybrand Bakker, Senior Oracle DBA ...
    (comp.databases.oracle.server)
  • Retrieve size of db objects
    ... given a certain Oracle database, I need to execute queries/commands in ... order to retrieve the following information: ... I'd appreciate any advice or pointer. ...
    (comp.databases.oracle.server)