ON ERROR - an error-trapping statement that enables error handling and specifies the first line of the error-handling routine Syntax ON ERROR GOTO line - line is the line label or line number of the statement that you want to run next after an error occurs during program execution See Also