I have a report whose query is
run the query and the datesa are in order but run the report and the date appears in alphabetical order?
Code:
PARAMETERS [Forms]![frmReport]![startdate] DateTime, [Forms]![frmReport]![enddate] DateTime;
TRANSFORM Nz(Count(qryEpisode.EpisodeID),0) AS CountOfID
SELECT Format([Date_Referred],"yyyy/mmm") AS [Date]
FROM qryEpisode
WHERE (((qryEpisode.Date_Referred) Between [Forms]![frmReport]![startdate] And [Forms]![frmReport]![enddate]))
GROUP BY Format([Date_Referred],"yyyy/mmm"), Format([Date_Referred],"yyyy/mm")
ORDER BY Format([Date_Referred],"yyyy/mm")
PIVOT qryEpisode.Outcomereport In ("GP","Cardiology","Cardioversion","No outcome");
run the query and the datesa are in order but run the report and the date appears in alphabetical order?