I was given this code that worked great but I need to tweak it.
TRANSFORM
First(Format([StartDateTime],"HH:MM")) AS ValFld
SELECT YourTable.Name
FROM YourTable
GROUP BY YourTable.Name
PIVOT Format(Int([StartDateTime]),"dd-mm-yy");
row is name column is date and value is starttime I need to add the type of shift to the start time D for day shift E evening shift N Night shift S sick V vacation
so the cross junctions of the crosstab query would show 7:00Am D
I thought maybe I could merge the fields?
the shiftstart and the shifttype fields
Thanks,
Tina
TRANSFORM
First(Format([StartDateTime],"HH:MM")) AS ValFld
SELECT YourTable.Name
FROM YourTable
GROUP BY YourTable.Name
PIVOT Format(Int([StartDateTime]),"dd-mm-yy");
row is name column is date and value is starttime I need to add the type of shift to the start time D for day shift E evening shift N Night shift S sick V vacation
so the cross junctions of the crosstab query would show 7:00Am D
I thought maybe I could merge the fields?
the shiftstart and the shifttype fields
Thanks,
Tina