Home About Download Service
blueshell Active Tables
blueshell ADO Survey Kit (BASK)
blueshell Data Guy
blueshell Error Guy
Harry's Access Tools
service@blueshell.com

BackNext

You invoke an error handler with the On Error statement, which comes in several varieties. Using the buttons on the screen shown here, you may choose the type of error handling that you need:

Instead of pressing a button you can use a corresponding keyboard action to check any On Error statement. The underlined symbols help you to do it. So you can press the underlined key only or a combination of [Alt+underlined key].

On Error statements

Function DefaultError(strName) As VbMsgBoxResult

DefaultError = MsgBox(Err.Description, vbAbortRetryIgnore + vbCritical + vbMsgBoxHelpButton, strName, Err.HelpFile, Err.HelpContext)

End Function

This implementation shows a message box with the description of the error. You may press "Abort", "Retry" or "Ignore" at this message box. "Abort" will end the routine, where the error occurred, "Retry" will try the last statement (that caused the error) again and "Ignore" will simply skip that statement.

You may press D or Alt+D to implement this error handling.

If you change the type of error handle in the selected procedure blueshell Error Guy informs you about it and asks you for confirmation. An exception: If your routine has "Undefined error handling" no confirmation is necessary.

The current procedure of your application, in which you include an error handler, is presented in the textbox of the Error Guy form. That's how you can see the error handling code that you have inserted.

You can look through your entire project to be sure that all error handling is well defined. For this purpose you can use the Find function with all its options. You may read it on the next page.

BackNextTop