Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Too Few Parameters. Expected 1. error when exporting

Status
Not open for further replies.
Jun 22, 2005
14
US
Hi,

I'm trying to export a simple query to a text file. However, it gives me a "Too Few Parameters. Expected 1" error message. The query works fine when exporting to other formats, ie, Excel. I have a date parameter that pulls from a form. I'm using Access 2002. Below is my query:

SELECT Main_tbl.Sub_id, Max(Main_tbl.Group_ID) AS MaxOfGroup_ID
FROM Main_tbl
WHERE (((Main_tbl.Date)<[Forms]![Main_Form]![EndDateTxt]))
GROUP BY Main_tbl.Sub_id;

Thanks!
 
Is Main_Form open when you try to export the query ?

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Yes, the Main_Form is open and the EndDateTxt is populated with a date. The query works fine when I run it. The only time i get that error msg is when I export to a Text file.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top