E
Eric Blitzer
windows 2000
Office 2000
I have a table with3 fields
Staff
Schedule Date
Timein - Out
I am able to produce a cross tab query with the following
results
Staff 11/1 11/10 11/11 ....
John 8:00 to 4:45 8:00 to 4:45 8:00 to 4:45
Joe 7:30 to 4:15 7:30 to 4:15 7:30 to 4:15
The order accross should be 11/1 11/2 11/3... I
understand the alpha sort and why it is putting 11/10 after
11/1. How do I get around this and sort accross the page
by date.
Also I would like to produce a report based on this
croostab query. The dates will always be changing. How do
I create this report.
Below is the sql
TRANSFORM Max([Rpt Schedule accross].Schedule) AS MaxOfSchedule
SELECT [Rpt Schedule accross].Staff
FROM [Rpt Schedule accross]
GROUP BY [Rpt Schedule accross].Staff
ORDER BY Format([ScheduledDate],"m/d")
PIVOT Format([ScheduledDate],"m/d");
Thanks
Eric
Office 2000
I have a table with3 fields
Staff
Schedule Date
Timein - Out
I am able to produce a cross tab query with the following
results
Staff 11/1 11/10 11/11 ....
John 8:00 to 4:45 8:00 to 4:45 8:00 to 4:45
Joe 7:30 to 4:15 7:30 to 4:15 7:30 to 4:15
The order accross should be 11/1 11/2 11/3... I
understand the alpha sort and why it is putting 11/10 after
11/1. How do I get around this and sort accross the page
by date.
Also I would like to produce a report based on this
croostab query. The dates will always be changing. How do
I create this report.
Below is the sql
TRANSFORM Max([Rpt Schedule accross].Schedule) AS MaxOfSchedule
SELECT [Rpt Schedule accross].Staff
FROM [Rpt Schedule accross]
GROUP BY [Rpt Schedule accross].Staff
ORDER BY Format([ScheduledDate],"m/d")
PIVOT Format([ScheduledDate],"m/d");
Thanks
Eric