I have created a cross tab query and I have a problem. The query will not recognize the date fields I have on a form. Any suggestion? Also I would like the dates to display by Week or Month I tried the format in criteria (yyyy ww) but it did not work either (mismatch). Also one of the fields in my query FaultCategory is just there so I can filter by criteria. I do not want it to show up in the query. Is there a way to hid that field? There is no check box to turn off like in normal queires
Code:
TRANSFORM Count(WorkUnitsFaultsMainTBL.Problem) AS CountOfProblem
SELECT WorkUnitsFaultsMainTBL.FaultCategory, WorkUnitsFaultsMainTBL.SystemGroup
FROM WorkUnitsFaultsMainTBL
WHERE (((WorkUnitsFaultsMainTBL.TodaysDate) Between [Forms]![Queries_ReportsFRM]![StartDateTxt] And [Forms]![Queries_ReportsFRM]![EndDateTxt]) AND ((WorkUnitsFaultsMainTBL.FaultCategory)="mechanical"))
GROUP BY WorkUnitsFaultsMainTBL.FaultCategory, WorkUnitsFaultsMainTBL.SystemGroup
PIVOT WorkUnitsFaultsMainTBL.TodaysDate;