BUG: ADODB Jet 4.0 Recordset.Filter with Server Cursor Fails in Windows 95 and Windows 98 (239946)
The information in this article applies to:
- ActiveX Data Objects (ADO) 2.0
- ActiveX Data Objects (ADO) 2.01
- ActiveX Data Objects (ADO) 2.1
- ActiveX Data Objects (ADO) 2.1 SP1
- ActiveX Data Objects (ADO) 2.1 SP2
This article was previously published under Q239946 SYMPTOMS
When you attempt to use a Filter on a Server cursor with a Microsoft Access table that contains a column Default Value = "", no row is found for the comparison. For example, Recordset.Filter = "myString = ''" fails on Microsoft Windows 95 and Microsoft Windows 98 if the Access table has a column Default Value = "" (empty string). This comparison works correctly with Microsoft Windows NT.
RESOLUTION
To resolve this problem, do one of the following:
- Use a Client cursor.
- Do not use an empty string default for the Access table column. Instead, leave the Default Value property blank and set Allow Zero Length equal to Yes. As a result of this action, a Null is entered by default, which works correctly in the Filter comparison for Windows 95, Windows 98, and Windows NT.
STATUSMicrosoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article. REFERENCESFor additional information, click the article number below
to view the article in the Microsoft Knowledge Base:
195222 PRB: ADO Find Method Only Supports One Criteria
Modification Type: | Major | Last Reviewed: | 8/23/2001 |
---|
Keywords: | kbbug kbDatabase kbDSupport kbMDACNoSweep KB239946 |
---|
|