Article ID: 207143
Article Last Modified on 6/24/2004
APPLIES TO
- Microsoft Access 2000 Standard Edition
- Microsoft Query 2000
This article was previously published under Q207143
Moderate: Requires basic macro, coding, and interoperability skills.
This article applies only to a Microsoft Access database (.mdb).
SYMPTOMS
When you create a query in Microsoft Query based on a Microsoft Access parameter query, you may receive the following error message:
Too few parameters. Expected n.
If you click
Help in the error message box, the topic states,
Driver error.
This error was returned by the driver. For more information, check the documentation for the driver you are currently using.
CAUSE
This behavior is a limitation of the Microsoft Access ODBC driver. Prompting for query parameters is a functionality of the Microsoft Access user interface. However, the Microsoft Access ODBC driver doesn't have this capability; therefore, it generates an error message.
RESOLUTION
In Microsoft Access, create a make-table query based on the parameter
query; run the make-table query, and then use the resulting table in
Microsoft Query.
If you are using Microsoft Query to make the results of a Microsoft Access
parameter query available to Microsoft Excel, you may want to consider
exporting the parameter query to an Excel file from within Access.
REFERENCES
For more information about parameter queries, click Microsoft Access Help on the Help menu, type what is a parameter query and when would you use one? in the Office Assistant or the Answer Wizard, and then click Search to view the topic.
For more information about make-table queries, click Microsoft Access Help on the Help menu, type create a new table from the results of a query with a make-table query in the Office Assistant or the Answer Wizard, and then click Search to view the topic.
For more information about exporting data from Microsoft Access toMicrosoft Excel, click Microsoft Access Help on the Help menu, type load the output of a datasheet, form, or report into microsoft excel in the Office Assistant or the Answer Wizard, and then click Search to view the topic.
Additional query words: too few parameters expected 1 2 3 4 5 6 7 8 9 0
Keywords: kberrmsg kbinterop kbprb KB207143