ado error handling

Results 1 to 2 of 2

Thread: ado error handling

  1. #1
    ronen meir Guest

    Default ado error handling

    i have a problem in truble shooting an error when i preforme a query that is wrong.<BR>how do i use the on error resume next to redairect the document or give a massege?

  2. #2
    gh Guest

    Default one way

    On Error Resume Next &#039This also clears any previous err<BR>oRS.Open strBadSQL, oConn<BR><BR>&#039Check for success<BR>If Err.Number &#060;&#062; 0 Then<BR>Response.Write "&lt;br&gt;Error executing: " & strBadSQL<BR>Response.Write "&lt;br&gt;&lt;br&gt;Error message: " & Err.Description<BR>Response.End<BR>End If

Posting Permissions

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