BUG: Data in Bound Text Box Does Not Return to Original Value After CancelUpdate If Changed in Code (269522)
The information in this article applies to:
- Microsoft Visual Basic Professional Edition for Windows 6.0, when used with:
- Microsoft Data Access Components 2.1
- Microsoft Data Access Components 2.1 (GA)
- Microsoft Data Access Components 2.1 SP1
- Microsoft Data Access Components 2.1 SP2
- Microsoft Data Access Components 2.5
- Microsoft Data Access Components 2.6
- Microsoft Data Access Components 2.7
- Microsoft Visual Basic Enterprise Edition for Windows 6.0, when used with:
- Microsoft Data Access Components 2.1
- Microsoft Data Access Components 2.1 (GA)
- Microsoft Data Access Components 2.1 SP1
- Microsoft Data Access Components 2.1 SP2
- Microsoft Data Access Components 2.5
- Microsoft Data Access Components 2.6
- Microsoft Data Access Components 2.7
This article was previously published under Q269522 SYMPTOMS
When you update a bound text box by setting its text property in code, and then you call a CancelUpdate method, the value in the field does not revert to its original value.
RESOLUTION
Instead of setting the text property of the bound text box, set the value of the underlying recordset field directly, as follows:
Adodc1.Recordset!LastName = "Smith"
The bound text box should update itself after you run the code. Subsequent calls to the CancelUpdate method then work as expected, and change the text box contents back to its original value.
STATUSMicrosoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.
Modification Type: | Major | Last Reviewed: | 5/8/2003 |
---|
Keywords: | kbbug kbpending KB269522 kbAudDeveloper |
---|
|