Query has week number and year from a date field.

Solo7

New member
Local time
Today, 12:08
Joined
Mar 3, 2008
Messages
9
Hi guys! In my latest adventure "new query" I get tangled up with sorting week numbers A to Z.

I use an expression field to convert a date to a week number. Works fine, except when I sort the query on the week number field the weeks go
1
11
12
13
14
15
16
17
18
19
2
20
21 ect. I used Opened Week: Format([Opened Date],"ww yyyy") to display the week and year of the Opened Date field. How do I get it to recognize the week numbers properly?
 
Add this
Order by Format([Opened Date],"yyyy ww")
 

Users who are viewing this thread

Back
Top Bottom