Crosstab query problem (1 Viewer)

David b

Registered User.
Local time
Today, 07:28
Joined
Mar 2, 2003
Messages
102
I am trying to create a "diary page" so that all bookings can be viewed on one
screen. I want resources along the top, eg Arena. Gallop. Farm Ride. Down
the side times . eg 3.00 4.00 etc.

I have been trying with a crosstab query which nearly works !! Problem is what
goes in value. If I use First then if there is a 3.00 booking for 2 resources
then it only shows the customer with the name nearest A

Any thoughts on this. Am I on the right track ?

SQL follows
TRANSFORM First(diarysortfacilities.ContactLastName) AS [The Value]
SELECT diarysortfacilities.ScheduleStartTime
FROM diarysortfacilities
GROUP BY diarysortfacilities.ScheduleStartTime
PIVOT diarysortfacilities.ResourceType;

TIA
David B
 

Users who are viewing this thread

Top Bottom