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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sort Grouped Data by Week

Status
Not open for further replies.

vikin9

Technical User
Jun 22, 2001
16
0
0
US
I need to sort some grouped data by week for an MS Graph in a Report. The data spans over a year and must sort chronologically to graph correctly. This works great if I group by month using the format "yyyy-mm," which always gives a two digit month (i.e. 2001-03, 2001-04, etc.). If I switch to "yyyy-ww," the week of the year switches to a single digit and the sort order changes to alphanumeric (i.e. 2001-1, 2001-10, 2001-11...2001-2, 2001-20, 2001-21, etc.). I can't find a way to force the ww to always be two digits. I'd be grateful for any suggestions. Thanks.
 
Create a query that shows weeks correctly, like "2001-01" rather than "2001-1", and use it as the data source.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top