Results 1 to 4 of 4
  1. #1
    jdrumgold1983 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    May 2014
    Posts
    2

    Query help - Totals by Delivery Method by Hour


    Hi,

    Hoping someone could help me with a problem that I am having. Fairly new to Access and have been trying to create a query that allows me to see how many trays or product I have confirmed each hour of the day by delivery method. I have a table that looks similar to the one below:

    Date Delivery method Time confirmed qty
    05/05/14 AM 13:06 4
    05/05/14 AM 14:08 6
    05/05/14 CC 16:09 10
    05/05/14 CC 18:10 11
    05/05/14 YC 18:15 2

    I am looking for a query to show me the total number of trays confirmed for delivery methods ending in C, ie the totals of YC and CC together per hour.

    Could anyone provide any help or point me in the direction of where I should be going with this?

    Thanks

  2. #2
    lfpm062010 is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2013
    Location
    US
    Posts
    415
    Try this, called the table [TABLENAME]

    SELECT TABLENAME.Date, Sum(TABLENAME.QTY) AS Totals
    FROM TABLENAME
    WHERE (((TABLENAME.[Delivery method]) Like "*C"))
    GROUP BY TABLENAME.Date;

  3. #3
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,921
    You want the summary by hour or total for the day?

    Is the Time Confirmed a date/time field? Usually best to keep all parts of date/time in a single field. The parts are easily extracted with date/time functions.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  4. #4
    jdrumgold1983 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    May 2014
    Posts
    2
    Hi June7,

    Thanks for your reply, managed to get it to do what I wanted!

    I'm wanting it per hour of the day and I have managed to round up the hours and group them together.

    Thanks again

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

Similar Threads

  1. Replies: 1
    Last Post: 01-31-2014, 11:03 PM
  2. Replies: 1
    Last Post: 10-20-2013, 10:04 AM
  3. Replies: 5
    Last Post: 07-11-2013, 08:50 AM
  4. Query for Specific 24 hour time period
    By esh112288 in forum Queries
    Replies: 1
    Last Post: 10-23-2012, 02:16 PM
  5. Replies: 5
    Last Post: 08-08-2012, 05:35 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