BUG: ADO Recordset Filter Is Removed After You Set Sort Property (313204)
The information in this article applies to:
- ActiveX Data Objects (ADO) 1.0
- ActiveX Data Objects (ADO) 1.5
- ActiveX Data Objects (ADO) 2.0
- ActiveX Data Objects (ADO) 2.01
- ActiveX Data Objects (ADO) 2.1
- ActiveX Data Objects (ADO) 2.5
- ActiveX Data Objects (ADO) 2.6
- ActiveX Data Objects (ADO) 2.7
- Microsoft Visual Basic Professional Edition for Windows 6.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
This article was previously published under Q313204 SYMPTOMS
If you set the filter property of an ADO recordset to an array of bookmarks and subsequently set the sort property, the filter is removed. In addition, all records are visible again in the recordset.
RESOLUTION
To work around this problem, sort the data in the query that is used to open the recordset.
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: | 12/14/2001 |
---|
Keywords: | kbbug kbDSupport KB313204 |
---|
|