Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Catch ADO errors

Status
Not open for further replies.

Sandman83

Programmer
Sep 11, 2001
122
US
Hi All,

I'm trying to find a way to either catch ADO errors or test an ADO connection with VBA. The standard "On Error GoTo" statements don't catch them.

Thanks,

Tim
 
I think you'll need to provide some more information.

For one thought, I believe that Access VBA cannot capture error messages that are coming from SQL Server or other external sources. I believe the error handling has to be done at the external source.

--

"If to err is human, then I must be some kind of human!" -Me
 



Hi,

Are you wanting to check for VB errors or SQL errors?

Skip,
[sub]
[glasses]Just traded in my old subtlety...
for a NUANCE![tongue][/sub]
 
In your error handler, loop through the Errors collection in your ADO Connection object.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top