R
Rolf Gossen
Hello NG,
i'm facing the following problem. I have got an SQLServer Table
tblAuthors with to Restrictions Primary Key PK_tblAuthors and a Unique
Key
IX_tblAuthors. The data in this table is updated via an endless
Access-Adp Form.
The problem is now that as soon as one of the Restrictions is violated
I can catch the OnError Event in the Form_Error(DataErr As Integer,
Response As Integer) method. Now I would like to offer the User a more
telling Error-Message than
"Violation of UNIQUE Key IX_tblAuthor. ..."
or
"Violation of PRIMARY Key PK_tblAuthor ..."
The problem is just that both Errors have the same error-Number (that
is 2627) and consequently have the same error-Message in
err.Description.
So how can I find out which of the two errors occured, in order to
display a customized error message.
Thanks for your help
Rolf
i'm facing the following problem. I have got an SQLServer Table
tblAuthors with to Restrictions Primary Key PK_tblAuthors and a Unique
Key
IX_tblAuthors. The data in this table is updated via an endless
Access-Adp Form.
The problem is now that as soon as one of the Restrictions is violated
I can catch the OnError Event in the Form_Error(DataErr As Integer,
Response As Integer) method. Now I would like to offer the User a more
telling Error-Message than
"Violation of UNIQUE Key IX_tblAuthor. ..."
or
"Violation of PRIMARY Key PK_tblAuthor ..."
The problem is just that both Errors have the same error-Number (that
is 2627) and consequently have the same error-Message in
err.Description.
So how can I find out which of the two errors occured, in order to
display a customized error message.
Thanks for your help
Rolf