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

ID: Q212749


The information in this article applies to:
  • Microsoft Access 2000
  • Microsoft Data Access Components version 2.1

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 this to be a problem in the Microsoft products listed at the beginning of this article.


MORE INFORMATION

Steps to Reproduce Problem

  1. Open the sample Access project NorthwindCS.adp.


  2. In the Database window, click Tables under Objects, and then click the Categories table.


  3. On the Insert menu, click AutoReport.


  4. After the report is generated, open it in Design View.


  5. On the View menu, click Sorting and Grouping.


  6. In the Sorting and Grouping dialog box, click the arrow in the Field/Expression column, and then click CategoryId in the list.


  7. Set the GroupHeader property to Yes.


  8. Close the Sorting and Grouping dialog box.


  9. Add the following to the Filter property of the report:


  10. [CategoryName] = 'Seafood'
  11. Set the FilterOn property of the report to Yes.


  12. Save the report as Categories.


  13. On the View menu, click Print Preview.


  14. Note that the report is blank.



REFERENCES

For more information about server filters, click Microsoft Access Help on the Help menu, type serverfilter property in the Office Assistant or the Answer Wizard, and then click Search to view the topic.

Additional query words: pra

Keywords : kberrmsg kbdta
Version : WINDOWS:2.1,2000
Platform : WINDOWS
Issue type : kbbug


Last Reviewed: August 24, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.