Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sort problem

Status
Not open for further replies.

HOMMER

Technical User
Apr 12, 2001
112
US
This gives me all the info I want but does not sort by weeknumber. It sorts by the average. I need to sort by weeks for the graph. I tryed all the normal ways of sorting I can think of I know I am n\missing somethie easy...


TRANSFORM Sum(qry_first_hour_weekly.AvgOfGPH) AS SumOfAvgOfGPH
SELECT qry_first_hour_weekly.weeknumber
FROM qry_first_hour_weekly
GROUP BY qry_first_hour_weekly.weeknumber
PIVOT qry_first_hour_weekly.Year;
 
try this one!

TRANSFORM Sum(qry_first_hour_weekly.AvgOfGPH) AS SumOfAvgOfGPH
SELECT qry_first_hour_weekly.weeknumber
FROM qry_first_hour_weekly
GROUP BY qry_first_hour_weekly.weeknumber
PIVOT qry_first_hour_weekly.Year
ORDER BY qry_first_hour_weekly.weeknumber ____________________________________________________
Invest your time in learning, Not in practicing.

DEK
 
Hi there

try adding

ORDER BY qry_first_hour_weekly.weeknumber to your
query

Transcend
[gorgeous]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top