By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,483 Members | 1,449 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,483 IT Pros & Developers. It's quick & easy.

Rolling 52 week criteria

P: 28
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)
Expand|Select|Wrap|Line Numbers
  1. >=DateAdd("yyyy",-1,DateAdd("d",-Weekday(Date()),Date()))
End_Date (getting from my table)
Expand|Select|Wrap|Line Numbers
  1. <=DateAdd("d",-Weekday(Date()),Date())
Thank you in advance.
Jan 9 '09 #1
Share this Question
Share on Google+
2 Replies


P: 28
By the way, Week start "Monday and Week end "Sunday".
Jan 9 '09 #2

NeoPa
Expert Mod 15k+
P: 31,186
There's so much of this question that I can't understand. How is #2009/01/04 11:59:59 PM# the result of :
Expand|Select|Wrap|Line Numbers
  1. <=DateAdd("d",-Weekday(Date()),Date())
... bearing in mind that this isn't even an assignment but a comparison :S

There is more that doesn't make sense, but perhaps this is the clearest. Please try to rephrase your question so that I can work out what it is you want.
Jan 12 '09 #3

Post your reply

Sign in to post your reply or Sign up for a free account.