Alhakeem1977
Registered User.
- Local time
- Today, 16:16
- Joined
- Jun 24, 2017
- Messages
- 308
I have got a query extracts the business days from a table for the whole year as the below:
Rank DDate
246 26-Dec-19
247 29-Dec-19
248 30-Dec-19
249 02-Jan-20
250 05-Jan-20
251 06-Jan-20
My query syntax as the below:
,,,,,,,,,,,,,,,,,,,,,,,,
I want to reset the [Rank] column by year from the above query like the below:
Rank DDate
246 26-Dec-19
247 29-Dec-19
248 30-Dec-19
1 02-Jan-20
2 05-Jan-20
3 06-Jan-20
,,,,,,,,,,,,
How can I achieve to solve this issue?
Your earliest response would be highly appreciated.
Thanks in advance.
Rank DDate
246 26-Dec-19
247 29-Dec-19
248 30-Dec-19
249 02-Jan-20
250 05-Jan-20
251 06-Jan-20
My query syntax as the below:
Code:
SELECT DCount("[DDate]","Sub","[DDate]<=#" & [DDate] & "#") AS Rank, Sub.DDate
FROM Sub;
,,,,,,,,,,,,,,,,,,,,,,,,
I want to reset the [Rank] column by year from the above query like the below:
Rank DDate
246 26-Dec-19
247 29-Dec-19
248 30-Dec-19
1 02-Jan-20
2 05-Jan-20
3 06-Jan-20
,,,,,,,,,,,,
How can I achieve to solve this issue?
Your earliest response would be highly appreciated.
Thanks in advance.