I have a crosstab that works in MS Access but not in the ASP page. The query is:
The code works nicely if I take out the where clause. It does not appear to be a problem with date because I've tried filtering on another parameter and it does not work either.
Any ideas? Please!!!
Thanks,
Rewdee
Code:
sql = "TRANSFORM Sum(UGNightShift.Value) AS [The Value] " & _
"SELECT UGNightShift.EntryDate, UGNightShiftComments.Shift, UGNightShiftComments.ShiftSupervisor, UGNightShift.GroupID " & _
"FROM (Calculations INNER JOIN UGNightShift ON Calculations.[Calculation Index] = UGNightShift.[Calculation Index]) " & _
"INNER JOIN UGNightShiftComments ON UGNightShift.EntryDate = UGNightShiftComments.EntryDate " & _
"WHERE UGNightShift.EntryDate = #" & Yesterday & " 7:00:00 PM# " & _
"GROUP BY UGNightShift.EntryDate, UGNightShiftComments.Shift, UGNightShiftComments.ShiftSupervisor, UGNightShift.GroupID " & _
"ORDER BY UGNightShift.EntryDate DESC " & _
"PIVOT Calculations.Label;"
Any ideas? Please!!!
Thanks,
Rewdee