Database Programming Techniques > Handling Database Errors |
True DBGrid processes errors in a manner consistent with other custom controls, generating both trappable errors and error events. Trappable errors are reported whenever an error is generated by a Visual Basic command or statement. Error events are fired whenever an error is generated by a user action and there is no identifiable line of Visual Basic code causing the error.
When you develop error handling procedures, there are two key points to always keep in mind:
The source of the operation which ultimately results in an error.
The source of the actual error.