Connecting Tech Pros Worldwide Help | Site Map

Rolling 52 week criteria

 
LinkBack Thread Tools Search this Thread
  #1  
Old January 9th, 2009, 06:34 AM
Newbie
 
Join Date: Nov 2008
Posts: 24
Default Rolling 52 week criteria

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 08:46 PM. Reason: Moved to Access Answers from Insights
Reply
  #2  
Old January 9th, 2009, 12:45 PM
Newbie
 
Join Date: Nov 2008
Posts: 24
Default

By the way, Week start "Monday and Week end "Sunday".
Reply
  #3  
Old January 12th, 2009, 01:09 PM
NeoPa's Avatar
Administrator
 
Join Date: Oct 2006
Location: London - UK
Age: 48
Posts: 14,330
Default

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
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search


Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,840 network members.