Microsoft KB Archive/282315

= Access appears to hang when you preview or print an object in PivotTable view =

Article ID: 282315

Article Last Modified on 3/29/2007

-

APPLIES TO


 * Microsoft Office Access 2007
 * Microsoft Office Access 2003
 * Microsoft Access 2002 Standard Edition

-



This article was previously published under Q282315



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 preview or print an object in PivotTable view, you receive the following message:

Previewing or printing this PivotTable view might take a long time because it displays a large amount of detail data. Microsoft Access might not respond for some time.

Do you want to continue?


 * To reduce the amount of time required, hide most or all of the detail data in the view.


 * For more information, consult the Microsoft Knowledge Base article Q282315.

To determine the unique number that is associated with the message that you receive, press CTRL+SHIFT+I. The following number appears in the lower-right corner of this message:

510702

After you click OK, Microsoft Access appears to stop responding (hang). However, after a significant wait, the object is successfully displayed in preview or is printed.



CAUSE
The PivotTable is displaying a large amount of detail data.



RESOLUTION
There are two approaches for working around this behavior. You can either reduce the amount of detail data being displayed in the PivotTable, or you can use a different view if you need to preview or print many detail records.

Reducing the Amount of Detail Data Displayed
You can reduce the amount of detail data being displayed by viewing only the summary data, and then drilling down to see specific details as needed. The following steps demonstrate how to build a PivotTable that displays only summary data, and how to drill down to see specific details for printing:
 * 1) Open the sample database Northwind.mdb.
 * 2) Open the Orders table in Datasheet view.
 * 3) On the View menu, click PivotTable View.

Note If you use Acess 2007, click View on the Home tab, and then click PivotTable View.
 * 1) Drag the CustomerID field from the PivotTable Field List to the &quot;Drop Row Fields Here&quot; drop area. This displays the data from the CustomerID field down the left side of the PivotTable.
 * 2) Expand the Order Date by Month fieldset in the PivotTable Field List.
 * 3) Drag the Months field from the PivotTable Field List to the &quot;Drop Column Fields Here&quot; drop area. This displays the months of the years across the top of the PivotTable.
 * 4) Drag the Freight field from the PivotTable Field List to the &quot;Drop Totals or Detail Fields Here&quot; drop area. This displays the detail data from the Freight field at the intersection of each row and column.
 * 5) Click the Freight column heading under the first month. This should select all the cells in all the columns where there is a value.
 * 6) On the PivotTable menu, point to AutoCalc, and then click Sum.

Note If you use Access 2007, click AutoCalc on the Design tab, and then click Sum.

Note that the PivotTable displays a total of Freight for each customer in each month.
 * 1) On the PivotTable menu, click Hide Details.

Note If you use Access 2007, click Hide Details in the Show/Hide group on the Design tab.

Note that this hides all details, and shows just the summary data.
 * 1) Double-click one of the cells that contains a value, such as the total for ERNSH in November. Note that only the specific details for this total are shown, as opposed to all details.
 * 2) On the File menu, click Print Preview.

Note If you use Access 2007, click Microsoft Office Button, point to Print, and then click Print Preview.

Note that the object is immediately displayed in Print Preview mode.

Reducing the Amount of Data Displayed by Using a Filter
You can also reduce the amount of data that is currently displayed in the PivotTable by applying a filter. To reduce the amount of data that is displayed in the PivotTable by applying a filter, follow these steps:
 * 1) Follow steps 1 through 7 in the &quot;Reducing the Amount of Detail Data Displayed&quot; section earlier in this article.
 * 2) Click the arrow in the CustomerID column in the PivotTable, and then click to clear the (All) check box, so that no items are currently selected (checked).
 * 3) Click to select the check boxes next to &quot;BERGS&quot; and &quot;BLONP&quot;, and then click OK. This filters the PivotTable to only display orders for these two customers.
 * 4) On the File menu, click Print Preview.

Note If you use Access 2007, click Microsoft Office Button, point to Print, and then click Print Preview.

Note that the object is immediately displayed in Print Preview mode.

Switch to a Different View Before Previewing or Printing
If you need to display a large amount of detail data while you preview or print the object, switch the object to another view, such as Datasheet view or Form view. These views do not use the PivotTable component, and are not subject to its limitations when printing.



STATUS
This behavior is by design.



MORE INFORMATION
PivotTable views are designed for summarizing and analyzing data, while at the same time giving you the ability to drill down to view detail data. For example, if you notice something interesting about a particular summarization, you can drill down and view specific details. PivotTable views are not optimized for displaying and printing many detail records at once.

When you view detail data in a PivotTable, the number of visible cells greatly increases. In order to display the contents of each cell, the PivotTable component generates a separate ADO recordset for each cell in the PivotTable. As the number of cells that are displayed in the PivotTable increases, so does the number of ADO recordsets that the PivotTable component must open and manage. This results in a longer time to preview or print the PivotTable.

Even though previewing or printing a PivotTable may be slow, you may notice that the same behavior does not occur when you view the object in PivotTable view. This is because the PivotTable component only opens the number of ADO recordsets required to display the cells that are currently visible on the screen. As you scroll up or down the window to view other cells, the PivotTable component opens additional ADO recordsets as needed. This differs from previewing or printing because the PivotTable component must open all recordsets required by the PivotTable before the first page is previewed or printed.

The length of time it takes for the data to be displayed depends on a number of factors, such as the number of cells displayed within the PivotTable, the processing speed of your computer, and the amount of free memory on your computer.

Steps to Reproduce the Behavior
WARNING: Following these steps will cause Microsoft Access to stop responding for some time on your computer. Make sure you save and close any open work on your computer before following these steps.
 * 1) Repeat steps 1 through 7 of the &quot;Reducing the Amount of Detail Data Displayed&quot; section earlier in this article.
 * 2) On the File menu, click Print Preview.

Note If you use Access 2007, click Microsoft Office Button, point to Print, and then click Print Preview.

Note that you receive the message that is mentioned at the beginning of this article. If you click OK at this point, Microsoft Access may appear to stop responding for a long time. However, the table will eventually be displayed in Print Preview mode.

Additional query words: prb ACC2002 ACC2007

Keywords: kbprint kberrmsg kbprb KB282315

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.