Results 1 to 4 of 4
  1. #1
    TrulyVisceral is offline Total N00B
    Windows 8 Access 2010 64bit
    Join Date
    Mar 2018
    Location
    Deimos
    Posts
    102

    Making a graph that tells how many incidents there were at a specific hour.

    What I mean, is that I want to make a report where there's a graph and it shows how many incidents there were at hour 1, then hour 2, etc...
    Specifically, I'm trying to do this:


    Click image for larger version. 

Name:	1.png 
Views:	11 
Size:	28.3 KB 
ID:	33514
    But that's excel, I want that in access.
    Ignore the blue, green and yellow boxes, they're not important. Just how many analists there were at those specific hours.

  2. #2
    isladogs's Avatar
    isladogs is offline MVP / VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    5,954
    Hello again
    The principle is just the same

    Create a query grouping by the hour part of your time field and sum the incidents field.
    Check it gives the expected results
    Use this for the record source of a suitable chart type -line or scatter??
    Colin, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I don't know, I keep quiet!
    If I don't know that I don't know, I don't know whether to answer

  3. #3
    TrulyVisceral is offline Total N00B
    Windows 8 Access 2010 64bit
    Join Date
    Mar 2018
    Location
    Deimos
    Posts
    102
    Quote Originally Posted by ridders52 View Post
    Hello again
    The principle is just the same

    Create a query grouping by the hour part of your time field and sum the incidents field.
    Check it gives the expected results
    Use this for the record source of a suitable chart type -line or scatter??
    Well, the time is in those numbers that count from 1899. Same thing anyways?

    EDIT: Nvm, just changed the format to "Short time" so it gives me military hours (1-24)

  4. #4
    TrulyVisceral is offline Total N00B
    Windows 8 Access 2010 64bit
    Join Date
    Mar 2018
    Location
    Deimos
    Posts
    102
    I went and overthought things again. Lost myself.

    Click image for larger version. 

Name:	2.png 
Views:	10 
Size:	4.4 KB 
ID:	33515
    I have the hour field (the one on the right) formated as short time in the query... and because I'm me, I forgot how to group things. So with google, I got https://www.experts-exchange.com/que...p-By-Hour.html
    And that didn't help. And other links don't help either.
    Do I have to write something in SQL, or am I missing the obvious? (again, I mean)

    Or perhaps that was it and the rest is making the graph?

    ...hyello
    Coolcool.

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

Similar Threads

  1. Replies: 1
    Last Post: 01-20-2015, 12:27 PM
  2. Replies: 6
    Last Post: 07-25-2014, 09:25 AM
  3. Replies: 1
    Last Post: 10-20-2013, 10:04 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. Making a graph/chart using DCount
    By Currancchs in forum Queries
    Replies: 10
    Last Post: 07-17-2012, 03:52 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