Microsoft KB Archive/94026

{|
 * width="100%"|

ACC1x: Datasheet Form Saved as Subreport Causes GP Fault

 * }

Q94026

-

The information in this article applies to:


 * Microsoft Access 1.0

-

SYMPTOMS
A report containing a subreport created from a form causes a general protection (GP) fault in Microsoft Windows if the DefaultView property of the original form is set to Datasheet.

The following error message appears after you choose Print Preview or Print from the File menu:

MSACCESS caused a General Protection Fault in module MSACCESS.EXE at 006A:0A26

RESOLUTION
You can use a form as a subreport by embedding it directly in the main report. You do not need to choose the Save As Report menu option. A form with its DefaultView property set to Datasheet does not cause a GP fault when it is embedded in a report. The following steps demonstrate how to do this:


 * 1) Open the sample database NWIND.MDB.
 * 2) Create a new report.
 * 3) Drag the Categories Subform form from the Database window to the main report.

-or-
 * 1) Open the original form in Design view.
 * 2) Change the DefaultView property to either Single Form or Continuous Forms.
 * 3) From the File menu, choose Save As Report.
 * 4) Embed the new form in your report.

STATUS
Microsoft has confirmed this to be a problem in Microsoft Access version 1.0. This problem no longer occurs in Microsoft Access version 1.1.

Steps to Reproduce Problem

 * 1) Open the sample database NWIND.MDB.
 * 2) Open the Categories Subform form in Design view.
 * 3) From the File menu, choose Save As Report.
 * 4) Create a new report based on the Categories table.

NOTE: The GP fault only occurs if the main report is bound.
 * 1) Drag the Categories Subform report that you created in step 3 to the main report that you created in step 4.
 * 2) Preview the report.

Keywords : kbusage

Issue type : kbbug

Technology :