Microsoft KB Archive/168881

From BetaArchive Wiki
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Article ID: 168881

Article Last Modified on 1/19/2007



APPLIES TO

  • Microsoft Access 97 Standard Edition



This article was previously published under Q168881


SYMPTOMS

When you use the Filter By Form command to filter a form that contains a linked subform, you may receive the following error message:

There are too many controls on the form to allow Filter By Form.


Upon applying the filter, you receive the error message:

This program has performed an illegal operation and will be shut down. If the problem persists, contact the program vendor.

When you click the Details button, you receive the following message:

   MSACCESS caused an invalid page fault in module KERNEL32.DLL.

   -or-

   MSACCESS caused an invalid page fault in module MSACCESS.EXE.
                

CAUSE

The subform is based on either a totals query or a crosstab query and is linked to the main form.

RESOLUTION

There are two possible ways to work around this behavior:

  • Set the subform's RecordSource property to a temporary table created with a make-table query based on the original totals query or crosstab query.
  • Use the form's other filtering capabilities to filter the data, such as Filter By Selection, or Advanced Filter/Sort.


STATUS

Microsoft has confirmed this to be a problem in Microsoft Access 97. This problem no longer occurs in Microsoft Access 2000.

MORE INFORMATION

Steps to Reproduce Problem

WARNING: Following these steps will cause an invalid page fault on your computer. Make sure you save and close any open work on your computer before following these steps.

  1. Open the sample database Northwind.mdb.
  2. Open the Quarterly Orders form in Form view.
  3. On the Records menu, point to Filter, and then click Filter By Form.


Note that you receive the message "There are too many controls on the form to allow Filter By Form."

  1. Click OK to clear the message.
  2. In the CustomerID combo box, select "ALFKI."
  3. On the Filter menu, click Apply Filter/Sort.


Note that you receive the error:

This program has performed an illegal operation and will be shut down. If the problem persists, contact the program vendor.

When you click the Details button, you receive the following message:

   MSACCESS caused an invalid page fault in module KERNEL32.DLL.

   -or-

   MSACCESS caused an invalid page fault in module MSACCESS.EXE.
                

Keywords: kbbug kbusage KB168881