Error Handling Q

Results 1 to 2 of 2

Thread: Error Handling Q

  1. #1
    Join Date
    Dec 1969

    Default Error Handling Q

    I am trying to use this code as error handling:<BR><BR>if objConn.errors.count &#062; 0 then <BR>response.redirect "Http://"<BR>end if <BR><BR>I don&#039;t know much about error handling, but I do know that objConn is my connection variable. Does anyone know why this would not work at all? The only way I am getting an error is if someone does not fill in a field.. I&#039;d like to get a catch-all for this instance.. seems this sort of error handling would work best.. could anyone diagnos my problem?<BR><BR>-M

  2. #2
    Join Date
    Dec 1969

    Default RE: Error Handling Q

    Use something like following:<BR>=========================<BR><BR>on error resume next<BR>&#039;&#039;<BR>&#039;&#039;your code for connection here<BR>&#039;&#039;<BR>if err.number &#060;&#062; 0 then<BR> response.redirect("http://....")<BR><BR>else<BR>&#039;&#039;&#039;continue<B R>end if <BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts