Microsoft KB Archive/212749

= ACC2000: Can't Use Client-Side Filtering in an ADP Report with Grouping =

Article ID: 212749

Article Last Modified on 6/29/2004

-

APPLIES TO


 * Microsoft Access 2000 Standard Edition
 * Microsoft Data Access Components 2.1

-



This article was previously published under Q212749



Moderate: Requires basic macro, coding, and interoperability skills.

This article applies only to a Microsoft Access project (.adp).



SYMPTOMS
When you open a report in a Microsoft Access project that uses both grouping and client-side filtering (the Filter property), the report returns no data, or you may receive the following error messages

The bookmark was invalid.

followed by:

IRowsOffset would position you past either end of the rowset, regardless of cRows value specified; cRowsObtained is 0.



RESOLUTION
To successfully create a report that implements both grouping and filtering, use the ServerFilter property instead of the Filter property.



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.



Steps to Reproduce Problem
 Open the sample Access project NorthwindCS.adp. In the Database window, click Tables under Objects, and then click the Categories table. On the Insert menu, click AutoReport. After the report is generated, open it in Design View. On the View menu, click Sorting and Grouping.</li> In the Sorting and Grouping dialog box, click the arrow in the Field/Expression column, and then click CategoryId in the list.</li> Set the GroupHeader property to Yes.</li> Close the Sorting and Grouping dialog box.</li> Add the following to the Filter property of the report:

[CategoryName] = 'Seafood'

</li> Set the FilterOn property of the report to Yes.</li> Save the report as Categories.</li> On the View menu, click Print Preview.</li> Note that the report is blank.</li></ol>

<div class="references_section">