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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

err.number vs objconn.errors.count

Status
Not open for further replies.

blexman

Programmer
Jul 18, 2001
34
0
0
CA
What is exactly the difference in use ?

I know err.number needs the On Error Resume Next statement at the top of the ASP page but does objConn.error also need this as well ?

I have code like this that checks for database errors:

IF objConn.Errors.count > 0 THEN
For Each errLoop In objConn.Errors
response.write "sqlstate---> "
response.write errLoop.SQLState
response.write &quot;<br>&quot;
Next
END IF

..should I be using err.number<>0 instead ?

thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top