Results 1 to 3 of 3
  1. #1
    funkygoorilla is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Aug 2011
    Posts
    93

    Query two tables for specified dates

    Hi,
    I have two tables that have date ranges I would like to query certain parts of. One table A has a begin date, and end date, and table B has a date for all entries made on that day. Is there a way I can have one query look at table A, for entries made between ##/##/#### and ##/##/####, and look in table B for all entries between ##/##/#### and ##/##/####? I would like to have the user enter only two date ranges, but have the query pull results from two tables. Thanks for any help.

  2. #2
    dblife's Avatar
    dblife is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Nov 2011
    Location
    South Shields, UK
    Posts
    104
    Assuming you have a form based on table A you wish to work from, create two unbound text boxes, have these as the criteria for the forms record source.
    When the users selects dates, have a subform show entries for that date via a parent/child relationship based on date.

  3. #3
    funkygoorilla is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Aug 2011
    Posts
    93
    Ok to clarify, I have table A with only one date of when the users enters the info. Its information relating to when they start a shift on the job. The next table stores info for what they did on the job and the dates of it. The problem is that I can query table B for the date span, but I dont know who to include the date from table A in that same span.

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

Similar Threads

  1. Replies: 10
    Last Post: 11-16-2011, 10:58 AM
  2. Run Query by dates
    By BorisGomel in forum Access
    Replies: 3
    Last Post: 07-21-2011, 03:54 PM
  3. Problems with Dates in a query
    By oldteddybear in forum Access
    Replies: 3
    Last Post: 01-14-2011, 10:36 AM
  4. Query with dates and text
    By theworm in forum Queries
    Replies: 4
    Last Post: 10-27-2010, 05:23 PM
  5. Mixed dates - show only complete dates?
    By weeblesue in forum Queries
    Replies: 3
    Last Post: 10-27-2010, 02:15 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