Results 1 to 3 of 3
  1. #1
    Brian62 is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Aug 2009
    Posts
    147

    Filtering a Query

    I am trying to filter a query to give me this. The filters below is what I am trying but Date 2 is still pulling dates that are less than june 1, 2009.



    Date1 is filtered like this: >#12/31/2007#
    Between [Enter: Start Date Like 05/31/09] And [Enter: End Date Like 06/01/10]

    Date2 is filtered like this: >#5/31/2009#

    Date2 has some dates but not all. This date shows when a study is closed. I have to have all data but not show closed studies before June 1, 2009.

    I need to show all records after Jan 1, 2008 (Date1), and include (Date2) records that are between June 1, 2009 and May 31, 2010.

    I hope you can understand this.

  2. #2
    TheShabz is offline Court Jester
    Windows XP Access 2003
    Join Date
    Feb 2010
    Posts
    1,368
    I think this is what you want

    WHERE Date1 >=#1/1/2008 And Date2 Between #6/1/2009# And #5/31/2010#

  3. #3
    Brian62 is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Aug 2009
    Posts
    147
    Figured it out. Thanks!

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

Similar Threads

  1. Filtering a Query
    By jbarrum in forum Access
    Replies: 1
    Last Post: 11-20-2009, 03:03 PM
  2. Filtering in a report
    By SIM_2009 in forum Reports
    Replies: 1
    Last Post: 10-06-2009, 04:22 AM
  3. Replies: 0
    Last Post: 07-30-2009, 12:40 PM
  4. Filtering recs from query ...
    By rfhall50 in forum Forms
    Replies: 0
    Last Post: 02-18-2009, 09:40 AM
  5. Filtering my report
    By ldarley in forum Reports
    Replies: 1
    Last Post: 09-05-2008, 09:14 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