ACC2: GP Fault Creating Report Based on Query with Subquery

Last reviewed: May 14, 1997
Article ID: Q121898
The information in this article applies to:
  • Microsoft Access version 2.0

SYMPTOMS

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

When you create a report based on a parameter query that contains a subquery, you receive the following general protection (GP) fault error message:

   MSACCESS caused a General Protection Fault in module MSAJT200.DLL
   at <address>

This error occurs regardless of whether the parameter is declared, and regardless of whether the report is created manually or with a Report Wizard.

RESOLUTION

Convert your parameter query to a make-table query, and then run the query to create a new table. Use the new table as the record source for the report rather than the parameter query.

STATUS

This problem no longer occurs with the Microsoft Jet database engine version 2.5, which is available with the Microsoft Access version 2.0 Service Pack. For information about how to obtain the Service Pack, please see the following article in the Microsoft Knowledge Base:

   ARTICLE-ID: Q122927
   TITLE     : WX1124: Microsoft Access Version 2.0 Service Pack

MORE INFORMATION

Steps to Reproduce Problem

WARNING: Following these steps will cause a GP fault on your computer. Make sure to save and close any open work on your computer before following these steps.

  1. Start Microsoft Access and create a new database called SUBQRY.MDB.

  2. Import the Categories and Products tables from the sample database NWIND.MDB into the SUBQRY database.

  3. Create the following new query based on the Categories and Products tables, and then save the query as Query1.

    NOTE: In the following sample query, an underscore (_) at the end of a line is used as a line-continuation character. Remove the underscore from the end of the line when re-creating this query.

          Query: Query1
          -------------------------------------------------------
          Field: Category ID
    
             Table: Categories
          Field: Supplier ID
             Table: Products
             Criteria: [Enter a Supplier ID]
          Field: Cat: (SELECT [Category Name] FROM [Categories] _
                 WHERE [Products].[Category ID]=_
                 [Categories].[Category ID])
    
    

  4. Close the query.

  5. Select the Query1 query in the Database window.

  6. Click the AutoReport button on the toolbar.


Additional query words: gpf jet25 jet 2.5
Keywords : kberrmsg kbusage RptProb
Version : 2.0
Platform : WINDOWS
Hardware : X86
Issue type : kbbug
Resolution Type : kbworkaround


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: May 14, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.