Pivot charts in Access are not just for display only. You can also distribute your pivot table analysis in a printed report. For example, you can create a pivot chart that compares employees' sales data for 2005 and then add it to the employees' sales report.
To do so, create an Employees_and_Orders query that lists the employees and their total orders by month and year. This query includes four fields: Employee, Order Month, Order Year (2001 through 2006), and Order Total. Now follow these steps:
- In the database window under Objects, click Forms.
- Click the New button.
- Select Autoform: Pivot Chart.
- Select the Employees_and_Orders query from the drop-down list and click OK.
- Drag the Employee field from the Chart Field List to the Category drop zone.
- Drag the Order Year field to the Filter drop zone.
- Drag the Order Total field to the Data drop zone.
- Click the Order Year button and clear all check boxes except for 2005.
- Click the Properties tool in the PivotChart toolbar.
- Click the General tab and select Value Axis 1 Title from the drop-down list.
- Click the Format tab and enter Total Sales in the Caption text box.
- Click the General tab and select Value Axis 2 Title.
- Click the Format tab and enter Employee in the Caption text box.
- Click the General tab and select Title from the drop-down list.
- Click the Format tab and enter 2005 Total Sales Per Employee.
- Click the Show/Hide tab and clear the FieldButton/Drop Zones check box.
- Press [Ctrl]+. (period) until you reach the Form's Design view and press [F4].
- Click in the Default View Property text box and select PivotChart from the drop-down list.
- Save the form as 2005 Employee Sales Subform.
- Click Reports under Objects in the Database Window.
- Select New, click Design View, and click OK.
- Drag the 2005 Employee Sales Subform to the report grid.
- Delete the subform label and move and resize the control as needed to display the chart within the report.
Miss a tip?
Check out the Microsoft Access archive, and catch up on our most recent Access tips.
Help users increase productivity by automatically signing up for TechRepublic's free Microsoft Office Suite newsletter, featuring Word, Excel, and Access tips, delivered each Wednesday.