Rolling 52 week criteria

shimul

Registered User.
Local time
Today, 07:01
Joined
Nov 18, 2008
Messages
10
Hi All,

I have query where i am getting result

Week Number -----------------Start_Date ------------------End_Date
2 ------------------------------2008/01/07 ------------------2008/01/13 11:59:59 PM
.
.
52 ---------------------------2008/12/22 -------------------2008/12/28 11:59:59 PM

But I want something like

Week Number ----------------Start_Date --------------------End_Date
2 -----------------------------------2008/01/07 -------------------2008/01/13 11:59:59 PM
.
.
1 ------------------------------------2008/12/29 -------------------2009/01/04 11:59:59 PM

I attached my query. Can you please check my query and tell me why i am not getting my desire result?

Here is my formula, I am using in query:

Start_Date (getting from my table)
>=DateAdd("yyyy",-1,DateAdd("d",-Weekday(Date()),Date()))
End_Date (getting from my table)
<=DateAdd("d",-Weekday(Date()),Date())


By the way, Week start "Monday and Week end "Sunday".

Thank you in advance.
 

Attachments

  • attchment.JPG
    attchment.JPG
    27 KB · Views: 127
I would suggest thast as you are 52 week centric that you enbed that into your transactional tables. By doing this you also have a Status for open closed or future this period and block posting for anything other than open the periods (weeks).

I have seen so companies operating 4 x 13 quarters so under the same principle having quarters on the week table can be used.

Simon
 

Users who are viewing this thread

Back
Top Bottom