Results 1 to 3 of 3
  1. #1
    djclntn is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Feb 2011
    Posts
    476

    How to exclude records in a query 60-days past the current date?

    Containing "Dates" in a query, if you don't want to view the records dated before say the month of July in the criteria box you'll put <#6/30/2011#.




    However, what if you don't wish to see records 60-days past the current date I can't come up with the criteria which might be simple.

    I tried <>Now()-60 in a query & it didn't work. Does anyone have any ideas/suggestions? I have both Queries & Forms.

    Thanks

  2. #2
    djclntn is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Feb 2011
    Posts
    476
    I just figured if out immediately after posting.

    It's >Now()-60

  3. #3
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    ...or Date() - 60. Now() includes the time. Date() sets the time to midnight.

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

Similar Threads

  1. Aslways show Current Date even in Old records
    By farhanahmed in forum Programming
    Replies: 3
    Last Post: 04-03-2011, 12:56 PM
  2. Run Query based on date for Multiple days
    By jedwards85 in forum Access
    Replies: 3
    Last Post: 03-29-2011, 12:04 PM
  3. Exclude records within same criteria
    By brooke48 in forum Queries
    Replies: 14
    Last Post: 05-15-2010, 02:15 PM
  4. Replies: 2
    Last Post: 04-27-2010, 01:25 PM
  5. Replies: 2
    Last Post: 07-31-2009, 06:56 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