Results 1 to 4 of 4
  1. #1
    laurak is offline Novice
    Windows 10 Access 2007
    Join Date
    Jul 2016

    Query running all info in a db with the exception of records that have been closed for 30 days +

    I am trying to run reports based on a membership database.
    I need all records to be on the report with the exception of records that have a closed date 30 days or more.

    Thus, when the report runs, all active members are included as well as closed files only within the 30 day time frame. All other closed files will not be included in the report.

  2. #2
    pbaldy's Avatar
    pbaldy is online now Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Nevada, USA
    Try a criteria of:

    < Date() - 30
    Paul (wino moderator)
    MS Access MVP 2007-2019

  3. #3
    laurak is offline Novice
    Windows 10 Access 2007
    Join Date
    Jul 2016
    Thanks, so under status - criteria I have active or pending or inactive ... and then I would put closed < Date() - 30 ?? or is there a trick to say closed but with only this time frame? because if I enter it in as I noted - it does not show the closed.

  4. #4
    John_G is offline VIP
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2011
    Ottawa, ON (area)
    You would put > Date() - 30 as the criteria for the DateClosed field in the query.

    Notice I changed the "<" to ">"; you want the closed data to be greater than 30 days ago.

    However, you need to account for members whose membership hasn't expired, in which case there won't be a Closed Date (it will be Null), so you could have:

    Is Null Or > Date() - 30 as the criteria.

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

Similar Threads

  1. Replies: 9
    Last Post: 03-07-2016, 04:17 PM
  2. Replies: 8
    Last Post: 07-07-2014, 11:21 AM
  3. Replies: 4
    Last Post: 09-27-2012, 02:23 PM
  4. Replies: 4
    Last Post: 08-17-2011, 05:30 AM
  5. Print next 8 days & info
    By skippernick in forum Reports
    Replies: 2
    Last Post: 04-06-2010, 12:38 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 - Senior Forums