ACC2002: Subform in PivotTable or PivotChart View Is Printed in Datasheet View (299042)
The information in this article applies to:
This article was previously published under Q299042 Moderate: Requires basic macro, coding, and interoperability skills.
This article applies to a Microsoft Access database (.mdb) and to a Microsoft Access project (.adp).
SYMPTOMS
When you print preview or print a form that contains a subform in PivotTable or PivotChart view, the subform is displayed or printed in Datasheet view.
CAUSE
The SourceObject of the subform is set to a table or a query whose DefaultView property is set to Datasheet.
RESOLUTION
There are two possible resolutions for this problem. You can either set the DefaultView property of the table or the query to the appropriate view, or you can change the SourceObject property of the subform to reference a saved form.
Setting the DefaultView Property of the Table/Query
One solution to the problem is to set the DefaultView property of the table to either PivotTable or PivotChart, depending on the view that you want the subform to be displayed in. This causes the subform to be displayed in PivotTable or PivotChart view during print preview and printing. To set the DefaultView property, follow these steps:
- Open the table in Design view.
- On the View menu, click Properties to view the property sheet for the table.
- Set the DefaultView property to PivotTable or PivotChart.
- Close the table, and then click Yes when Microsoft Access prompts you to save.
Setting the SourceObject of a Subform to a Saved Form
Another solution to the problem is to create a form that is based on the table or the query that serves as the subform, and then to set the SourceObject property of the subform to the new form. To set the SourceObject property of a subform, follow these steps:
- Create a new form that is based on the table or query currently serving as the subform.
- Add all fields to the form.
- Close the form, and then save it when you are prompted by Microsoft Access.
- Open the main form in Design view.
- On the View menu, click Properties to open a property sheet.
- Click the subform control to view its properties in the property sheet.
- On the Data tab, set the SourceObject property to the form that you created in step 3.
STATUSMicrosoft has confirmed that this is a problem in Microsoft Access.
Modification Type: | Major | Last Reviewed: | 9/26/2003 |
---|
Keywords: | kbbug kbnofix KB299042 |
---|
|