Visual Basic Concepts
The RemoteData control handles errors that occur during different stages of the development cycle. Each of these stages requires a different type of error management on your part or in your code:
Development stages | How the RemoteData control handles errors |
For example, when setting RemoteData Control properties to access a specific database. | Visual Basic exposes error dialogs indicating the problem. |
Before the form containing the RemoteData Control is loaded (before Form_Load is completed). | The RemoteData Control fires the Error event. |
After the form containing the RemoteData Control is loaded (after Form_Load is completed). | The RemoteData Control or RDO triggers a trappable error. |
A user clicks a RemoteData control button. | The RemoteData Control fires the Error event. |
The RemoteData control attempts to open an rdoConnection and creates rdoResultset objects after the Form_Load event. | The RemoteData Control fires the Error event. |
A custom control performs an operation, such as the MoveNext method, the AddNew method, or the Delete method. | The RemoteData Control fires the Error event. |
When the Error event fires, you have the option of handling the error yourself, or simply letting Visual Basic expose an error dialog to the user.