PRB: Database Errors Not Shown When Closing Form (141172)
The information in this article applies to:
- Microsoft Visual Basic Standard Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Professional Edition, 16-bit, for Windows 4.0
- Microsoft Visual Basic Professional Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Enterprise Edition, 16-bit, for Windows 4.0
- Microsoft Visual Basic Enterprise Edition, 32-bit, for Windows 4.0
This article was previously published under Q141172 SYMPTOMS
When a form with one or more data controls on it is closed, all changed
information in bound data controls is, by default, written to the database
before the database is closed. However, any errors that result from this
default update are not displayed. For example, if a field has its Required
property set to True, and a form that contains an empty text box bound to
that field is closed, no error will be shown.
RESOLUTION
Placing a call to the data control's UpdateRecord method in the form's
Unload event causes all errors to be shown and also makes it possible to
trap for these errors and act accordingly.
STATUS
This behavior is by design.
Modification Type: | Major | Last Reviewed: | 12/9/2003 |
---|
Keywords: | kbDatabase kbprb KB141172 |
---|
|