Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

ACC2000: PivotTable Wizard Fails with Parameter Query in Access


View products that this article applies to.

This article was previously published under Q198930
Moderate: Requires basic macro, coding, and interoperability skills.

↑ Back to the top


Symptoms

When you use a data source that contains a parameter in the Pivot Table Wizard, you may receive the following error message when the wizard tries to create the table:
An error occurred while trying to use the Microsoft Excel Pivot Table Wizard. Microsoft Excel returned the following error:

'Problems obtaining data.'

↑ Back to the top


Cause

You cannot use a parameter query in the PivotTable Wizard. The data used in the PivotTable Wizard must come from a table or a query that does not need any additional input.

↑ Back to the top


Resolution

If you want to use a parameter query as the source for the data in the PivotTable Wizard, you must first run the query and make a table of the data; then, you can use that table in the PivotTable Wizard.

↑ Back to the top


More information

Steps to Reproduce Behavior

  1. Open the sample database Northwind.mdb in Microsoft Access.
  2. Create a new form.
  3. In the New Form box, click Pivot Table Wizard, select the Employee Sales by Country query in the Choose the table or query where the object's data comes from box, and then click OK.
  4. In the PivotTable Wizard, click Next on the first screen.
  5. Select all the fields in the Available Fields box, and then click Next.
  6. When Microsoft Excel opens, click Finish in the PivotTable Wizard dialog box.
Note that you receive the error message mentioned in the "Symptoms" section.

↑ Back to the top


References

For more information about creating a PivotTable, click Microsoft Access Help on the Help menu, type pivot table in the Office Assistant or the Answer Wizard, and then click Search to view the topics returned.

↑ Back to the top


Keywords: KB198930, kbprb, kberrmsg

↑ Back to the top

Article Info
Article ID : 198930
Revision : 2
Created on : 7/13/2004
Published on : 7/13/2004
Exists online : False
Views : 241