Cannot set Empty to Date field using Oracle, SQL Provider, or Kagera (247202)
The information in this article applies to:
- Microsoft Visual Basic Professional Edition for Windows 5.0
- Microsoft Visual Basic Professional Edition for Windows 6.0
- Microsoft Visual Basic Enterprise Edition for Windows 5.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
- 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 Q247202 SYMPTOMS
If you try to store the Visual Basic keyword Empty to an ADODB Record column based on Date type field as in the following code
rs("fDate") = Empty
it causes this error:
Run-time error '-2147217887(8004e21)':
Errors Occurred
Under MDAC 2.5 or later, you receive this message:
Run-time error '-2147217887(8004e21)':
Multiple-step operation generated errors. Check each status value.
RESOLUTION
If it is necessary to re-initialize a date type field back to a blank value, cancel the AddNew operation using CancelUpdate and re-issue the AddNew method.
STATUS
Microsoft is currently researching this problem and will post new information here as it becomes available.
Modification Type: | Minor | Last Reviewed: | 11/22/2005 |
---|
Keywords: | kbDatabase kbprb KB247202 |
---|
|