Version: 1.0
The On Error Resume Next statement gives you a limited amount of error handling control by preventing program interruptions from runtime errors. When an error occurs, by using this statement, the line of code containing the error is simply skipped over and the program continues running.
<% On Error Resume Next %>
Note that the error is not corrected, just ignored, and an error message is not displayed. Of course, your program may still crash or give erroneous output if the error involves a value required to successfully execute later portions of your code.
<% On Error GoTo 0 %>
The On Error GoTo 0 statement is used to disable error handling.
<% If Err.Number <> 0 Then %>
<% =Err.Number%>
<% Err.Clear %>
<% End If %>
If you wish to know whether an error has occured and of what type, you can insert this code.