ACC97: "Too few parameters. Expected 1" Error Message When You Export Parameter Query as Text (262837)
The information in this article applies to:
This article was previously published under Q262837 Novice: Requires knowledge of the user interface on single-user computers.
SYMPTOMS
When you export a parameter query as a text file, you may receive the following error message, where X is the number of parameters in the query:
Too few parameters. Expected X.
RESOLUTION
To work around this issue, create a SQL statement similar to the SQL statement created in the following steps:
- Open the sample database Northwind.mdb.
- In the Database window, click the Employees table, click Insert, and then click Query.
- In the New Query dialog box, click OK.
- On the View menu, click SQL View.
- Type the following SQL statement:
SELECT * INTO [Text;FMT=Delimted;HDR=Yes;DATABASE=C:\;].[Employees#txt] FROM Employees WHERE [EmployeeID] = [Enter an EmployeeID]; - Save the query as Query1.
- On the Query menu, click Run. Note that a text file named "Employees.txt" was created on drive C, and that it contains only the data for the EmployeeID that you entered in the parameter box.
Modification Type: | Major | Last Reviewed: | 9/27/2003 |
---|
Keywords: | kberrmsg kbprb KB262837 |
---|
|