B
Bob Richardson
When I just look at this query (data sheet view) it's sorted correctly.
However when I use this query in a report, the data is sorted by "HowHeard"
rather than count. What's the solution to hafve it always sorted by count?
SELECT Count(AllData.IdNo) AS CountOfIdNo, DataConference.HowHear
FROM AllData INNER JOIN DataConference ON AllData.IdNo = DataConference.IdNo
GROUP BY DataConference.HowHear, DataConference.Year
HAVING (((Count(AllData.IdNo))>1) AND ((DataConference.HowHear)>"") AND
((DataConference.Year)=[Forms].[RptCentral].[CurYr]))
ORDER BY Count(AllData.IdNo) DESC;
However when I use this query in a report, the data is sorted by "HowHeard"
rather than count. What's the solution to hafve it always sorted by count?
SELECT Count(AllData.IdNo) AS CountOfIdNo, DataConference.HowHear
FROM AllData INNER JOIN DataConference ON AllData.IdNo = DataConference.IdNo
GROUP BY DataConference.HowHear, DataConference.Year
HAVING (((Count(AllData.IdNo))>1) AND ((DataConference.HowHear)>"") AND
((DataConference.Year)=[Forms].[RptCentral].[CurYr]))
ORDER BY Count(AllData.IdNo) DESC;