I
Irshad Alam
I am trying to make a crosstab query, below is sql view, all the rows and
values, columns are ok, no error. Only the problem is that its not sorting by
the column heading, April month is coming first, then febrauary,January march
One thing I can notice it is sorting based on the first field SIECode, But I
want to and have selected in design view to sort the column field in asending:
TRANSFORM Count(SlQ1.SlDays) AS CountOfSlDays
SELECT SlQ1.SlEcode, SlQ1.SlEName
FROM SlQ1
GROUP BY SlQ1.SlEcode, SlQ1.SlEName
ORDER BY Format([SlDates],"mmmm")
PIVOT Format([SlDates],"mmmm");
Please correct my code and some tips for handling complete year
Thanks and bes regards
Irshad
values, columns are ok, no error. Only the problem is that its not sorting by
the column heading, April month is coming first, then febrauary,January march
One thing I can notice it is sorting based on the first field SIECode, But I
want to and have selected in design view to sort the column field in asending:
TRANSFORM Count(SlQ1.SlDays) AS CountOfSlDays
SELECT SlQ1.SlEcode, SlQ1.SlEName
FROM SlQ1
GROUP BY SlQ1.SlEcode, SlQ1.SlEName
ORDER BY Format([SlDates],"mmmm")
PIVOT Format([SlDates],"mmmm");
Please correct my code and some tips for handling complete year
Thanks and bes regards
Irshad