Connecting Tech Pros Worldwide Help | Site Map

Rolling 52 week criteria

  #1  
Old January 9th, 2009, 07:34 AM
Newbie
 
Join Date: Nov 2008
Posts: 26
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.

Last edited by Frinavale; January 9th, 2009 at 09:46 PM. Reason: Moved to Access Answers from Insights
  #2  
Old January 9th, 2009, 01:45 PM
Newbie
 
Join Date: Nov 2008
Posts: 26

re: Rolling 52 week criteria


By the way, Week start "Monday and Week end "Sunday".
  #3  
Old January 12th, 2009, 02:09 PM
NeoPa's Avatar
Administrator
 
Join Date: Oct 2006
Location: London - UK
Posts: 15,473
Provided Answers: 57

re: Rolling 52 week criteria


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.
Reply