ACC2002: PivotTable or PivotChart View Is Missing When You Save a Form as a Report (310492)
The information in this article applies to:
This article was previously published under Q310492 Novice: Requires knowledge of the user interface on single-user computers.
This article applies to a Microsoft Access database (.mdb) and to a Microsoft Access project (.adp).
SYMPTOMS
When you save a form in PivotTable or in PivotChart view as a report, the report does not have a PivotTable or PivotChart object.
CAUSE
Unlike forms, reports do not have different views such as Datasheet view, PivotTable view, or PivotChart view. Only the appearance of the Design view of the form can be represented when you save a form as a report.
RESOLUTION
To view a PivotTable or PivotChart object in a Microsoft Access report, you must create a form and then customize the layout of its PivotTable or PivotChart view. Then you must set the DefaultView property of the form to PivotTable or PivotChart and embed the form as a subform on a report. For an example of how to do so, follow these steps:
- Open the sample database, Northwind.mdb.
- Create a new, blank form that is based on the Orders table.
- If the field list is not visible, click Field List on the View menu.
- Drag the EmployeeID, ShipVia, and Freight fields from the field list to the form.
- Set the DefaultView property of the form to PivotChart.
- On the File menu, click Save. When you are prompted, save the form as frmSubPivotChart.
- On the View menu, click PivotChart View.
- Drag the EmployeeID field from the PivotChart field list to the Drop Category Fields Here area.
- Drag the ShipVia field from the PivotChart field list to the Drop Series Fields Here area.
- Drag the Freight field from the PivotChart field list to the Drop Data Fields Here area.
- Close the form.
- Create a new, blank report, and then open it in Design view.
- Position the report in such a way that you can see the Database window, and then drag the frmSubPivotChart form from the Database window to the detail section of the report.
- On the File menu, click Print Preview.
Note that the report displays the PivotChart object that you created in the form.
STATUS
This behavior is by design.
Modification Type: | Major | Last Reviewed: | 9/27/2003 |
---|
Keywords: | kbnofix kbprb KB310492 |
---|
|