Hi All. I have a small Student database, simply for records of Student Names, Addresses, Classes etc. I am trying to run a Cross-tab query for a Time Table of forthcoming Classes, FileAs (the Student) as a Row Heading, and the date of the class [ClDt] as a Column Heading. I have asked the Query to Format the class date heading as "mmm-d" (I have to make the date abundantly clear or some Students won't bother turning up!). I put some fictitious classes in to check it worked, and it did, except the Date Column Heading comes out with Apr before Mar, and if I change the formatting to "d-mmm" I get Apr-1 then Mar-25, -26, -27, Apr-4, Apr-5 etc.
With Fortmat set "mmm-d"
And Format set to "d-mmm"
Query Design View
From the results of different Formats, logically it would appear that by Formatting the date it is being read (and therefore sorted) as a string, rather than the date? Assuming I'm right, how would I fix this? The usual method in the Sorting box hardly makes a difference?
Paul
BTW: After a long long stint in hospital, it's good to be back on the Forum![]()