Results 1 to 2 of 2
  1. #1
    turnbuk is offline Novice
    Windows XP Access 2007
    Join Date
    Aug 2011
    Posts
    10

    Count records between Time Period

    Morning,



    In Access 2007 I have a QUERY that needs to show the count of records between a certain time period however I can't seem to get it to work correctly possibly because it needs to group the FacilityName as well.

    This is my query right now and what it pulls:

    FacilityName | Date/Time

    I want to be able to group the Date/Time along with the FaciltyName by counting how many records fall between a certain time period. I tried >=#10:00:00 AM# OR <=#11:00:00AM# as the criteria for Date/Time but it seemed to ignore it. Any recommendations?

    Thanks

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,640
    You want AND, not OR. Every possible time is either after 10 OR before 11. You could also use Between.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Counting records over a 24hr period
    By rotorque in forum Access
    Replies: 8
    Last Post: 07-12-2011, 06:47 AM
  2. Set Database to Expire in time period
    By robsworld78 in forum Access
    Replies: 12
    Last Post: 06-07-2011, 06:54 AM
  3. Count Records
    By Cheshire101 in forum Access
    Replies: 1
    Last Post: 11-30-2010, 03:02 PM
  4. Count Items by Time Period
    By pawslover in forum Queries
    Replies: 1
    Last Post: 11-15-2010, 03:57 PM
  5. Count of records
    By Bruce in forum Forms
    Replies: 3
    Last Post: 03-22-2010, 01:30 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