Results 1 to 2 of 2
  1. #1
    desireemm1 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Aug 2009
    Posts
    50

    Query for after hours and weekends

    is there a way to setup a query that will show data for after hours and weekends? How would I create a query that would show you how many hang-ups and voice messages happened after hours.



    hours of operation are 6:00 AM - 4:30 PM would have to do this on the [Date & Time Left] field. ( this isn't my database, I was just told to create some reports on it)

    Code:
    SELECT [Message Tracking].[Date & Time Left], [Message Tracking].[Date Returned], [Message Tracking].[Customer Type]
     FROM [Message Tracking

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,549
    In the query time field :
    format([datefield],"hh:nn ampm") between #4:30 PM# and #5:59 am#

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

Similar Threads

  1. working hours excluding weekends
    By sdel_nevo in forum Queries
    Replies: 2
    Last Post: 08-15-2014, 08:52 AM
  2. Replies: 14
    Last Post: 09-11-2013, 01:10 PM
  3. Replies: 1
    Last Post: 05-01-2013, 10:53 AM
  4. Replies: 1
    Last Post: 08-08-2012, 01:42 PM
  5. Replies: 4
    Last Post: 08-06-2012, 10:25 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