S
Secret Squirrel
I'm having trouble with my crosstab query. It is telling me it's too complex
to evaluate, etc. Can anyone see what the problem might be?
PARAMETERS [Forms]![frmTest]![cboMonth] Text ( 255 );
TRANSFORM Sum(qryTimeAttendance.WorkHours) AS SumOfWorkHours
SELECT qryTimeAttendance.EmpID, Format([PunchDate],'mm') AS MonthSelect,
Count(qryTimeAttendance.RecordID) AS [Total Of RecordID]
FROM qryTimeAttendance
WHERE (((Format([PunchDate],'mm'))=[Forms]![frmTest]![cboMonth])) OR
((([Forms]![frmTest]![cboMonth]) Is Null))
GROUP BY qryTimeAttendance.EmpID, Format([PunchDate],'mm'),
qryTimeAttendance.PunchCount
PIVOT "Wk " & Format([PunchDate],"ww",2) & " " &
([PunchDate]-Weekday([PunchDate]))+7;
to evaluate, etc. Can anyone see what the problem might be?
PARAMETERS [Forms]![frmTest]![cboMonth] Text ( 255 );
TRANSFORM Sum(qryTimeAttendance.WorkHours) AS SumOfWorkHours
SELECT qryTimeAttendance.EmpID, Format([PunchDate],'mm') AS MonthSelect,
Count(qryTimeAttendance.RecordID) AS [Total Of RecordID]
FROM qryTimeAttendance
WHERE (((Format([PunchDate],'mm'))=[Forms]![frmTest]![cboMonth])) OR
((([Forms]![frmTest]![cboMonth]) Is Null))
GROUP BY qryTimeAttendance.EmpID, Format([PunchDate],'mm'),
qryTimeAttendance.PunchCount
PIVOT "Wk " & Format([PunchDate],"ww",2) & " " &
([PunchDate]-Weekday([PunchDate]))+7;