FIX: Datacombo Returns -2147217848 (80040e4e) Change Canceled (229272)
The information in this article applies to:
- Microsoft Visual Basic Professional Edition for Windows 6.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
- ActiveX Data Objects (ADO) 2.0
- ActiveX Data Objects (ADO) 2.1
- ActiveX Data Objects (ADO) 2.5
This article was previously published under Q229272 SYMPTOMS
When using a DataCombo control, if the DataField property of the DataCombo is bound to a numeric data type a problem may occur under the following circumstances:
The user clicks the combo box and moves the mouse over the entries in the drop-down portion of the combo box but does NOT choose an item from the list. The user then clicks another control so that the DataCombo loses focus and an attempt is made to update the underlying data source specified in the DataField property.
This action fails because the Text property of the combo is an empty string (non-numeric) and the bound field is a numeric type. In this case the following error message is returned:
-2147217848 (80040e4e) The change was canceled during notification; no columns are changed.
RESOLUTION
To work around this error check the Text property of the Datacombo. If it is blank, cancel the update to the underlying records. This work around is demonstrated in the code sample in the MORE INFORMATION section.
STATUS
This problem was fixed in Visual Basic 6.0 Service Pack 4 (SP4). For additional information about Visual Studio service packs, click the following article numbers to view the articles in the Microsoft Knowledge Base: 194022 INFO: Visual Studio 6.0 Service Packs, What, Where, Why
194295 HOWTO: Tell That a Visual Studio Service Pack Is Installed To download the latest Visual Studio service pack, visit the following Microsoft Web site: REFERENCES
For more information on the DataCombo control, please see the Visual Basic 6.0 On-line help.
Modification Type: | Minor | Last Reviewed: | 12/12/2005 |
---|
Keywords: | kbbug kbCtrl kbfix kbMDACNoSweep KB229272 |
---|
|