Results 1 to 4 of 4
  1. #1
    blacknight74 is offline Novice
    Windows 7 32bit Access 2013
    Join Date
    Sep 2014
    Posts
    2

    query between dates and timeline

    I need to do a query for data with criteria to enter between dates and between time. I manage to get the date criteria right. However when placing the criteria for time ig I query from 1900hrs to 0700hrs, only data from 0001 to 0700hrs appear. Any help please?

  2. #2
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    Why not include the date in your query between times?

  3. #3
    blacknight74 is offline Novice
    Windows 7 32bit Access 2013
    Join Date
    Sep 2014
    Posts
    2
    Because the i need to query data for eg: from 15th to 30th of the month and only data from 19000hrs to 0700hrs
    Thanks

  4. #4
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    Then you will need to assign a common date to your time. I use 1/1/1990, for instance. You can concatenate the literal text for the date part to the format function isolating the time portion.

    I believe this would be correct for 24hr clock and SQL query. "1/1/1990 " & format([MyDateField], hhmmss)

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

Similar Threads

  1. Timeline + Events Report
    By schwabe in forum Reports
    Replies: 1
    Last Post: 07-31-2013, 05:14 PM
  2. Report Timeline
    By brownk in forum Reports
    Replies: 3
    Last Post: 05-31-2012, 02:53 PM
  3. Query input dates for range of dates in two fields
    By kagoodwin13 in forum Queries
    Replies: 3
    Last Post: 02-13-2012, 04:25 PM
  4. Timeline View in Access
    By brettbarton in forum Forms
    Replies: 1
    Last Post: 11-08-2011, 07:35 PM
  5. timeline form
    By barkarlo in forum Programming
    Replies: 0
    Last Post: 08-07-2010, 12:39 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