How do I capture content of an ODBC error message from Oracle?
From: sjlevine34 (sjlevine34_at_discussions.microsoft.com)
Date: 11/09/04
- Next message: David Whitaker: "Office Pro 2003 Trial Problem"
- Previous message: WBullock: "Subform data refreshing"
- Next in thread: John Smith: "Re: How do I capture content of an ODBC error message from Oracle?"
- Reply: John Smith: "Re: How do I capture content of an ODBC error message from Oracle?"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 9 Nov 2004 15:15:01 -0800
I am using Microsoft Access as a front end for an Oracle database. All of
the data validation is done in the Oracle Tables through the use of triggers.
The error messages are ones I coded for as user-defined exceptions with
concise user-friendly descriptions. They display in their entirety in the
forms I use to maintain the tables. For example, the following error message
may be displayed:
ODBC--insert on a linked table 'OBI_DONOR_EMAIL' failed.
[Oracle][ODBC][Ora]ORA-20700: Email address cannot be blank.
ORA-06512: at "OBIEBIS.OBI_DONOR_EMAIL_T2", line 23
ORA-04088: error during execution of trigger 'OBIEBIS.OBI_DONOR_EMAIL_T2'
(#20700)
I would like to, through the use of the form on error event and the mid()
function, display the error message as "Email address cannot be blank.".
Despite extensive searching, I have not been able to find the object holding
the message "[Oracle][ODBC][Ora]ORA-20700: Email address cannot be blank.
<LF><LF> ORA-06512: at "OBIEBIS.OBI_DONOR_EMAIL_T2", line 23 <LF> ORA-04088:
error during execution of trigger 'OBIEBIS.OBI_DONOR_EMAIL_T2' (#20700)". I
know it has to be there because the message box displays the error after
completion of the form on error event procedure.
Does anyone know where this error message resides in access and how I can
get at it during the form error event procedure?
sjl
-- sjl
- Next message: David Whitaker: "Office Pro 2003 Trial Problem"
- Previous message: WBullock: "Subform data refreshing"
- Next in thread: John Smith: "Re: How do I capture content of an ODBC error message from Oracle?"
- Reply: John Smith: "Re: How do I capture content of an ODBC error message from Oracle?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|