Hello. I have created a recordset that uses the following WHERE clause
WHERE (((paylines.date)>Now()-Weekday(Now()-1)-14 And (paylines.date)<Now()-Weekday(Now()-1)))
I would like to change the WHERE clause to be based on a form control. I know I can't use the following:
WHERE (((paylines.Date)>=[forms]![payroll_summary]![from] And (paylines.Date)<=[forms]![payroll_summary]![to]));
I have tried numerous workarounds, including putting the control inside Eval() and putting single quotes around the control ("'" & control & "'") and I'm still getting too few parameters message.
Before I look at rewriting this, any other suggestions?
WHERE (((paylines.date)>Now()-Weekday(Now()-1)-14 And (paylines.date)<Now()-Weekday(Now()-1)))
I would like to change the WHERE clause to be based on a form control. I know I can't use the following:
WHERE (((paylines.Date)>=[forms]![payroll_summary]![from] And (paylines.Date)<=[forms]![payroll_summary]![to]));
I have tried numerous workarounds, including putting the control inside Eval() and putting single quotes around the control ("'" & control & "'") and I'm still getting too few parameters message.
Before I look at rewriting this, any other suggestions?