you can't error check in VBScript like you can in VB.
error handling is like so:
On Error Resume Next
...
then, after your connection calls or anything else that you think could raise an error, you write
if Err.number <> 0 then
Response.write "There was an error"
Err.clear
End if
yes - the VBScript implementation of error handling is horrible at best.
hope this helps.