Results 1 to 4 of 4
  1. #1
    farmerde is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Jan 2016
    Posts
    2

    Query dates for current week and prior

    Hello All,



    I am trying to filter the dates in a Query so that only dates for the current week and dates that are older than the current week are returned. I haven't had much luck and I would appreciate your suggestions.

  2. #2
    JoeM is offline VIP
    Windows 7 32bit Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    Try this criteria:
    Code:
    <=Date()+7-Weekday(Date())

  3. #3
    farmerde is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Jan 2016
    Posts
    2
    Perfect, thanks JoeM. I was trying all of these elaborate combinations using DatePart function but this is exactly what I needed.

    David

  4. #4
    JoeM is offline VIP
    Windows 7 32bit Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    You are welcome. Note. If you dates have a time component to them that is not zero, you will need to alter it a bit to:
    Code:
    <Date()+8-Weekday(Date())

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

Similar Threads

  1. Replies: 9
    Last Post: 06-19-2015, 03:37 PM
  2. Current and Prior Year Query
    By McArthurGDM in forum Programming
    Replies: 5
    Last Post: 06-19-2015, 09:22 AM
  3. Replies: 1
    Last Post: 03-23-2015, 09:42 AM
  4. Need to pull query for 2 Status with recent and prior dates
    By undefatedskillz26 in forum Queries
    Replies: 7
    Last Post: 12-23-2014, 03:33 PM
  5. Replies: 3
    Last Post: 09-19-2013, 10:18 AM

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