I'm trying to create a daily schedule in Crystal Reports to show appointments for the doctors in the clinic. Down the side will be the hours of the day starting at 7am until 5pm in half hour increments. Across the top would be the doctor's name. Each column would have the doctor's appointment lined up correctly with the time. How can I do this?
You should give some information more about your context;
anyway follow this steps:
cross-tab, putting Doctor Name in Columns, Day and Time in Rows, Appointment in FieldI created a sample report.
SELECT 'Doctor 1' as Doctor, CAST('2012-02-01 07:00:00' AS DATETIME) as DateTime , 'mr. Red' as Appointment
union
SELECT 'Doctor 1' , CAST('2012-02-01 07:30:00' AS DATETIME) , 'mr. Pink'
union
SELECT 'Doctor 1' , CAST('2012-02-01 08:00:00' AS DATETIME) , 'mr. White'
union
SELECT 'Doctor 1' , CAST('2012-02-01 08:30:00' AS DATETIME) , 'mr. Yellow'
union
SELECT 'Doctor 1' , CAST('2012-02-01 09:00:00' AS DATETIME) , 'mr. Green'
union
SELECT 'Doctor 1' , CAST('2012-02-01 09:30:00' AS DATETIME) , 'mr. Gray'
union
SELECT 'Doctor 1' , CAST('2012-02-01 16:00:00' AS DATETIME) , 'mr. Purple'
union
SELECT 'Doctor 2' , CAST('2012-02-01 07:30:00' AS DATETIME) , 'mr. Red'
union
SELECT 'Doctor 2' , CAST('2012-02-01 08:00:00' AS DATETIME) , 'mr. Orange'
union
SELECT 'Doctor 3' , CAST('2012-02-01 09:30:00' AS DATETIME) , 'mr. Blue'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With