I am running a query that uses the InParam function described multiple times on this site to allow users to choose multiple choices from a field on my table being queried.
My problem comes if I add a second user input criteria.
If I add a second user input For example between[Start Date?] and [End Date?] The query doesn't work.
If i try and link the date criteria off a form to get it's date range -- same thing. But -- I CAN put in hard coded Criteria (as in permanent - no user input) and it works.
Can't find a way around this.
The error says Too Few Parameters. Expected (and then either a zero or a One)
HERE is is in SQL
SELECT JobDetailMainTable.JobNumber, JobDetailMainTable.Code, JobDetailMainTable.DownHrs, InParam(
My problem comes if I add a second user input criteria.
If I add a second user input For example between[Start Date?] and [End Date?] The query doesn't work.
If i try and link the date criteria off a form to get it's date range -- same thing. But -- I CAN put in hard coded Criteria (as in permanent - no user input) and it works.
Can't find a way around this.
The error says Too Few Parameters. Expected (and then either a zero or a One)
HERE is is in SQL
SELECT JobDetailMainTable.JobNumber, JobDetailMainTable.Code, JobDetailMainTable.DownHrs, InParam(
Code:
,[Enter Code#'s Separated By Comma]) AS Expr2, JobDetailMainTable.MachNum, JobDetailMainTable.runDate
FROM JobDetailMainTable
WHERE (((InParam([Code],[Enter Code#'s Separated By Comma]))=True) AND ((JobDetailMainTable.MachNum)<954) AND ((JobDetailMainTable.runDate) Between [Enter Start Date Range] And [Enter End Date Range]))
ORDER BY JobDetailMainTable.Code, JobDetailMainTable.MachNum;