Results 1 to 3 of 3
  1. #1
    younggunnaz69 is offline Novice
    Windows Vista Access 2007
    Join Date
    Apr 2011
    Posts
    7

    Query with multiple date range constraints.

    Hi All

    I was hoping I could get help with a query that has been bothering me for awhile. I have tables that I have pasted sample data for below. tblVisit has the Date range where we have to visit a Property. tblBlackout has a Date Range where we can not visit the property. I would like to enter a Start Date and End Date in a form, lets say Forms![FormName]![SDate] and Forms![FormName]![EDate] and have it show all properties that can be visited in that range. Your help is much appreciated!!



    tblVisit

    Code:
    PropID | StartWindow | EndWindow
    1 | 02/01/2012 | 03/21/2012
    2 | 01/01/2012 | 01/20/2012
    3 | 01/15/2012 | 02/15/2012
    tblBlackout

    Code:
    PropID | StartBlackout | EndBlackout
    1 | 01/01/2012 | 01/15/2012
    2 | 01/15/2012 | 02/15/2012
    3 | 02/01/2012 | 03/01/2012

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726
    What have you tried? What result?

  3. #3
    younggunnaz69 is offline Novice
    Windows Vista Access 2007
    Join Date
    Apr 2011
    Posts
    7
    I tried to apply my scenerio to this one(not sure if they are the same) ( http://www.artfulsoftware.com/infotr...es.php#98) but could not get it to work. Thanks again to anyone who can help!
    Last edited by younggunnaz69; 12-26-2011 at 11:49 AM. Reason: forgot link

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

Similar Threads

  1. Run query by date range
    By ARickert in forum Access
    Replies: 2
    Last Post: 06-23-2011, 10:54 AM
  2. Complicated Query needs some date range help
    By KevinMCB in forum Queries
    Replies: 1
    Last Post: 01-11-2011, 12:25 PM
  3. Date range query from form
    By Steve Barnes in forum Queries
    Replies: 2
    Last Post: 07-29-2010, 07:06 PM
  4. Query for date range from two column?
    By sunny in forum Queries
    Replies: 2
    Last Post: 07-28-2010, 07:12 AM
  5. Replies: 3
    Last Post: 09-29-2009, 07:08 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