I have a crosstab query that I need the date to be taken from a form when it runs.
This is the current code.
How do I get the date that is in this code to be whatever is in a forms text box such as [frmTest]![testdate]
Thanks in advance
Micki
This is the current code.
Code:
TRANSFORM Sum(HrsForCrossTab.Hours) AS SumOfdHoursWorked_qty
SELECT HrsForCrossTab.EmployeeId, HrsForCrossTab.JobNo
FROM HrsForCrossTab
GROUP BY HrsForCrossTab.EmployeeId, HrsForCrossTab.JobNo
PIVOT "Date" & DateDiff("d",#8/5/2012#,[Date_hr]+1) & [EarningCode];
How do I get the date that is in this code to be whatever is in a forms text box such as [frmTest]![testdate]
Thanks in advance
Micki