I have a table that colA is set to be unique.
When I add a duplicate record, this record did not insert, but the err.number is still equal to 0.
any method I can detect this error??
Try checking the connection object errors collection:
<%
'if connection object is called conn
Response.Write "There were " & conn.errors.count & " errors returned from the db.<br>"
Dim dberr
For each dberr in conn.errors
Response.Write "Error: " & dberr.number & " - " & dberr.description & "<br>"
Next
%>
Hope this helps,
-Tarwn ________________________________________________________________________________
Want to get great answers to your Tek-Tips questions? Have a look at faq333-2924
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.