ACC2000: "Too Few parameters. Expected X" Error Message When You Export Parameter Query as Text (269671)
The information in this article applies to:
This article was previously published under Q269671 Novice: Requires knowledge of the user interface on single-user computers.
This article applies only to a Microsoft Access database (.mdb).
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 behavior, create a SQL statement similar to the SQL statement that is created in the following example:
- Open the sample database Northwind.mdb.
- In the Database window, click the Employees table, and on the Insert menu, click Query.
- In the New Query dialog box, click OK.
- On the View menu, click SQL View.
- Type or paste 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. Type a valid EmployeeID, and then click Yes in the dialog box that asks if you want to create a new table.
Note that a text file named "Employees.txt" is 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: | 6/25/2004 |
|---|
| Keywords: | kberrmsg kbprb KB269671 |
|---|
|