You can use the Retry statement and Ignore statement in error handling code, specifically for Try-Catch blocks and OnError events. Executing these statements outside of error handling code or using them for an error that is not recoverable results in a run-time error.
If the error occurred inside a Try block, execution resumes immediately after the Try statement in the Try-Catch-Endtry compound statement with the Catch statement that caught the error.
The syntax of the Retry statement is:
Retry
The syntax of the Ignore statement is:
Ignore
The Retry statement retries a non-fatal run-time (recoverable) error and resumes execution to the statement that caused the error. A valid Retry statement causes execution to resume at the start of the statement which caused the error.
The Ignore statement ignores a non-fatal run-time (recoverable) error and resumes execution of the next statement. A valid Ignore statement causes execution to resume at the start of the next statement after the one which caused the error.
In addition you can Retry or Ignore the operation that causes a recoverable run-time error. The Retry and Ignore options appear in the default error handler dialog box when a recoverable error occurs. Retry repeats the statement that caused the error. Ignore continues with the execution to the next statement and bypasses the error.
For more information, see Retry Statement and Ignore Statement.