Greetings,
I have an access query which uses built in parameters (e.g. [start date]) to prompt a user to enter a date parameter when the query is ran.
In most cases this has worked fine except today I tried to export the query to a text file and I am receiving an error:
Too few parameters. Expected 2.
This makes sense as there are two parameters in the query [start date] and [stop date], the reason it errors is that I am never prompted to supply a value.
If I export to Excel this works OK, just not to text files.
Any suggestions on how to get around this issue or allow me to export the query to a text file?
Thank you,
Example Access Query:
SELECT PR_EARN.Emp_No, PR_EARN.Pay_Code, PR_EARN.Hours, PR_EARN.Rate, PR_EARN.Pay_Amt, PR_EARN.Pay_Date
FROM PR_EARN
WHERE (((PR_EARN.Pay_Date) Between [Start Date] And [End Date]));