FIX: Jet Provider Errors When Setting a Field Equal to a Field Containing an Empty String (239781)
The information in this article applies to:
- Microsoft Visual Basic Learning Edition for Windows 6.0
- Microsoft Visual Basic Professional Edition for Windows 6.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
- ActiveX Data Objects (ADO) 2.1
- ActiveX Data Objects (ADO) 2.1 SP1
This article was previously published under Q239781 SYMPTOMS
When you save a recordset text field containing an empty string to another
recordset's field (this assumes both fields allow zero length), you get the following error message:
Errors occurred. '-2147217887 (80040e21)'.
CAUSE
ADO thinks it is dealing with an object instead of a property.
RESOLUTION
This error does not occur if the value property is specified when setting the contents of one field equal to the contents of another field. ADO needs specific directions to let it know that you are dealing with a property and not an object. The value property of the field clarifies this.
In addition, changing the cursor location to aduseserver solves this problem.
STATUSMicrosoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article. This bug was corrected in ADO 2.5 and later.
You may download the latest version of Microsoft Data Access Components, which includes ADO, from the following Microsoft Web site:
Modification Type: | Major | Last Reviewed: | 5/8/2003 |
---|
Keywords: | kbADO250Fix kbADO260fix kbbug kbDatabase kbDataBinding kbfix kbMDACNoSweep KB239781 |
---|
|