Microsoft KB Archive/121898

From BetaArchive Wiki

Article ID: 121898

Article Last Modified on 7/5/2002



APPLIES TO

  • Microsoft Access 2.0 Standard Edition



This article was previously published under Q121898

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

SYMPTOMS

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:

122927 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 kbbug kbusage KB121898