Results 1 to 2 of 2
  1. #1
    acw1980 is offline Novice
    Windows XP Access 2003
    Join Date
    Nov 2009
    Posts
    2

    Date Parameter Help - prior 13 weeks

    I need to put a date parameter in my query that pulls the last 13 "Full" weeks of data. I get close by using the following:



    Between DateAdd("ww",-13,Date()) And Date()


    But this actually counts back 13 weeks from current date, which return orders for part of the current week ( week # 46) and orders for part of the first week (week# 33). What I need to achieve is the last 13 full weeks (Sunday - Saturday), so 13 full weeks prior to current week. That make sense? I just can't seem to figure out how to achieve this. I would appreciate any suggestions you might have.

    Thanks!

  2. #2
    acw1980 is offline Novice
    Windows XP Access 2003
    Join Date
    Nov 2009
    Posts
    2
    just for clarification. what I am trying to achieve is the following:


    all orders with "delivery date" >= current week number - 14 weeks but not equal to current week number.

    Current week number is 46 so desired result would be to get all orders for weeks 32 through 45

Please reply to this thread with any new information or opinions.

Similar Threads

  1. How to calculate number of weeks
    By FeatherDust in forum Queries
    Replies: 0
    Last Post: 09-18-2009, 02:50 PM
  2. Can you use a parameter in findrecord?
    By P5C768 in forum Programming
    Replies: 2
    Last Post: 08-20-2009, 04:36 AM
  3. Replies: 1
    Last Post: 02-26-2009, 11:31 AM
  4. Date Parameter
    By shakira in forum Queries
    Replies: 2
    Last Post: 03-09-2006, 12:55 PM
  5. Replies: 1
    Last Post: 12-09-2005, 10:29 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums