M
Murray Bryant
I have a problem with error trapping
I have been placed in the situation where I am unable to utilise the onerror
goto commands as i am writing some forms (access 2002) which get imported
into another access derived product in which the developers (in there
wisdom...), have decided to catch all of the errors in there own code
bypassing any i might write. Effectivly turning there product into a giant
black hole suppressing all error messages and not allowing my code to
handle.
Unfortunately our staff make extensive use of this product and also require
the addon's i have written. The main show stopper is where i was using
docmd.runsql to execute queries and then catching the errors
So I am invesitagating the posiblility of being able to pass data to the
database and catch the errors into a variable without the error being passed
to the access error handler.
Set conn = CurrentProject.Connection
' send the first query
strSQL = "INSERT INTO tblDHSamp SELECT tmppreassayimport.* FROM
tmppreassayimport; "
conn.Execute strSQL, records
When the conn.execute is called is it possible to suppress the error and
then access it?
Or does someone else have another suggestion.
Thanks
I have been placed in the situation where I am unable to utilise the onerror
goto commands as i am writing some forms (access 2002) which get imported
into another access derived product in which the developers (in there
wisdom...), have decided to catch all of the errors in there own code
bypassing any i might write. Effectivly turning there product into a giant
black hole suppressing all error messages and not allowing my code to
handle.
Unfortunately our staff make extensive use of this product and also require
the addon's i have written. The main show stopper is where i was using
docmd.runsql to execute queries and then catching the errors
So I am invesitagating the posiblility of being able to pass data to the
database and catch the errors into a variable without the error being passed
to the access error handler.
Set conn = CurrentProject.Connection
' send the first query
strSQL = "INSERT INTO tblDHSamp SELECT tmppreassayimport.* FROM
tmppreassayimport; "
conn.Execute strSQL, records
When the conn.execute is called is it possible to suppress the error and
then access it?
Or does someone else have another suggestion.
Thanks