ACC2: GP Fault Creating Report Based on Query with Subquery
ID: Q121898
|
The information in this article applies to:
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:
Q122927 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.
- Start Microsoft Access and create a new database called SUBQRY.MDB.
- Import the Categories and Products tables from the sample database
NWIND.MDB into the SUBQRY database.
- 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])
- Close the query.
- Select the Query1 query in the Database window.
- Click the AutoReport button on the toolbar.
Additional query words:
gpf jet25 jet 2.5
Keywords : kberrmsg kbusage RptProb
Version : 2.0
Platform : WINDOWS
Issue type : kbbug