The ON ERROR GOTO statement transfers program control to a specified line or label in the current program unit when an error occurs under certain conditions. Example 5 ON ERROR GOTO 19000
1 – Syntax
{ ONERROR } { GO TO } { ON ERROR } { GOTO } target