Results 1 to 6 of 6
  1. #1
    nightf0x is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2013
    Posts
    3

    Modifing an access graph to create bins

    Hi guys,

    I have been struggling with modifying a graph that I have made into a counting graph, I have wasted over 4 hours trying to do this modification unsuccessfully.
    I am attaching 4 pictures, The Depth_Ranges Table Visual is the query which creates graph 1 you can also see in the additional attached picture of the design view the code that creates this graph 1.
    Now I need to add a field in the Design view of that query in order to have a result of the graph 2 that you see in the picture.
    Basically, creating counter that will count how many values are in each bin labels that you can see on the picture of graph 2.



    Any help with this thing would be highly appreciated !!!

    Cheers,
    Daniel
    Attached Thumbnails Attached Thumbnails graph 1.png   Depth_Ranges Table Visual.jpg   Design View Depth_Ranges.jpg   graph 2.png  

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,622
    I don't understand. Looks to me like you have what you describe you want - a graph of depths and a graph of counts.
    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.

  3. #3
    nightf0x is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2013
    Posts
    3
    Quote Originally Posted by June7 View Post
    I don't understand. Looks to me like you have what you describe you want - a graph of depths and a graph of counts.
    I have only the picture of the final graph which I am suppose to get which I have posted here, but I cant figure out how to get to this graph ...
    I know I need to add a code to a new field to the query which will create this counting graph...

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,622
    Count is accomplished with an aggregate (GROUP BY) Totals query or a CROSSTAB query.

    Click the Totals button on the ribbon to get the aggregate query grid.

    Use the CROSSTAB wizard for crosstab query.

    You need to calculate a field that will produce the range groups.

    DepthGroup: Switch([Depth]<3, "<3", [Depth]<=4, "3 to 4", [Depth]<=5, "4 to 5", [Depth]<=6, "5 to 6", [Depth]<=7, "6 to 7", [Depth]>7, ">7")

    Note that 7 cannot be in two groups.
    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.

  5. #5
    nightf0x is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2013
    Posts
    3
    Hey June7,

    I cant seem to understand why is it [Depth]<3.... and not [Magnitude]<3 ... I am looking to find out in what bin group each of the magnitudes values is ...
    Also It is suppose to be a matter of just adding a field, these are the instructions that I was given:

    Add a field to the Depth_Ranges query that will assign bins to the values of Magnitude.

    In your solution, did you mean I need to create a new crosstab query ??

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,622
    Okay, Magnitude.

    The expression I suggest does 'add a field'. It creates a field in query. That field can be used to group data in a Totals or CROSSTAB query.
    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.

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

Similar Threads

  1. Modifing Ms Access Template
    By v!ctor in forum Access
    Replies: 4
    Last Post: 10-10-2012, 12:00 AM
  2. new graph for each item in access
    By Grahamvdh in forum Forms
    Replies: 7
    Last Post: 05-17-2012, 03:17 PM
  3. Replies: 6
    Last Post: 02-29-2012, 03:13 AM
  4. Replies: 3
    Last Post: 01-10-2011, 10:31 AM
  5. Inventory with FIFO and multiple bins
    By 16montana in forum Access
    Replies: 1
    Last Post: 08-27-2010, 10:38 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