oohmygod831
Registered User.
- Local time
- Today, 19:39
- Joined
- Feb 16, 2005
- Messages
- 43
i have a query that returns data per week number. To obtain the week number i used this : Format([Date],"ww"). This gives me the week numbers great but when the query is sorted the week numbers are not sorted numerically, ie i get this
1
10
11
12
2
3
4
5
6
7
8
9
is there a way to sort my data to be numerical.
Here is the query:
SELECT Format([Date],"ww") AS [Week Number], Sum(Conformance.Scrap_Quantity) AS Scrap, Sum(Conformance.Rework_Quantity) AS Rework
FROM Conformance
WHERE (((Conformance.Procedure_Followed)=False))
GROUP BY Format([Date],"ww");
1
10
11
12
2
3
4
5
6
7
8
9
is there a way to sort my data to be numerical.
Here is the query:
SELECT Format([Date],"ww") AS [Week Number], Sum(Conformance.Scrap_Quantity) AS Scrap, Sum(Conformance.Rework_Quantity) AS Rework
FROM Conformance
WHERE (((Conformance.Procedure_Followed)=False))
GROUP BY Format([Date],"ww");