ACC97: PivotTable Wizard Fails with Parameter Query in MS Access

Last reviewed: June 3, 1997
Article ID: Q166355
The information in this article applies to:
  • Microsoft Access 97

SYMPTOMS

Moderate: Requires basic macro, coding, and interoperability skills.

When the data source that is used in the PivotTable Wizard is a query that contains a parameter, 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 wizard.
   Microsoft Excel returned the following error:

   "Problems obtaining data."

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.

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.

STATUS

This behavior is by design of Microsoft Excel.

MORE INFORMATION

Steps to Reproduce Behavior

  1. Open the sample database Northwind.mdb in Microsoft Access 97.

  2. Create a new form.

  3. In the New Form box, click Pivot Table Wizard, and 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. Note that you receive the error message mentioned in the "Symptoms" section.

REFERENCES

For more information about the PivotTable Wizard, search the Help Index for "PivotTables, creating," or ask the Microsoft Access 97 Office Assistant.


Keywords : AutoGnrl IntpOlea kberrmsg QryParm
Version : 97
Platform : WINDOWS
Hardware : x86
Issue type : kbprb
Resolution Type : Info_Provided


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: June 3, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.