Page 1 of 2 12 LastLast
Results 1 to 15 of 25
  1. #1
    kingofthekassel's Avatar
    kingofthekassel is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2015
    Posts
    25

    Connecting a Risk Cube or Graph from Excel into Access and use a query to populate the graph

    Hi,

    So I recently exported a bunch of data from an old online database


    into Excel. Using this data I used a couple VLookups, Drop down menus and most
    importantly some simple VBA code to create a Risk cube. My problem now is that I
    need to transfer all of this into Access in order to make reports. So far I
    successfully imported all of the data into Access but I have hit a snag with the
    Risk cube. I created a form with the necessary fields but it is lacking the
    cube. Is there any way to transfer the Risk cube (in it's working status) from
    Excel to Access? Here are the criteria I need the cube to follow:
    1) The Risk Cube must contain three series (Initial, Current, and Target)
    2) Each Series has the coordinates based off of their respective Consequence and Probability
    3) I want to include this in a report so I need it to work for every individual risk.
    4) I need this to be tied to my existing Query so that it will update with any changes.

    I have had a couple ideas of how to approach this but I don't know how to go about any of them.
    1) Figure out a way to export the working Risk Cube with all parts working (doubtful)
    2) Create the graph in Excel, without any data. Export this graph to Access and attempt to populate the graph with the data from the Query I made. (Most likely)
    3) Or Figure out a way to do everything in Access.

    These seem to be my options as of right now. I welcome openly any other suggestions. Please help, I am so stuck here.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,926
    This is just a graph? Can you attach an image? And provide sample data. If you want to attach db for analysis, follow instructions at bottom of my post.

    I suspect the graph will have a CROSSTAB query as its RowSource.
    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
    kingofthekassel's Avatar
    kingofthekassel is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2015
    Posts
    25
    I appreciate the fast response. Here is a small piece of my query. The "Probability" and "Consequence" Fields represent the Target Probability and Target Consequence. Additionally, In the image I attached, the symbols on the graph are the three different representations of each series (Initial, Current, Target).

    RiskNo First Probability FirstConsequence Current Probability CurrentConsequence t1.Planned Complete Probability Consequence
    AW2 4 4 2 3 11/4/2015 1 3
    BU13 3 3 4 3 5/29/2015 4 3
    FI9 4 5 2 3 11/28/2016 1 1
    FI10 4 4 1 2 2/13/2014 2 2
    KQ2 2 3 1 1 8/14/2015 1 1
    CU9 3 4 2 4 2/27/2015 1 1
    RT1 1 2 1 2 11/28/2016 1 2
    RT2 2 2 2 2 8/9/2014 2 2
    LK4 1 2 1 2 8/9/2014 1 2
    Attached Thumbnails Attached Thumbnails CubePreLim.JPG  

  4. #4
    kingofthekassel's Avatar
    kingofthekassel is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2015
    Posts
    25
    I think perhaps the easiest route may be to simply import this graph (shown in the attached image) to access and then populate it with the data from the query. If we could do this, is there any way to make each graph unique to each RiskNo?

  5. #5
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,926
    Cannot import graph. Must build from scratch in Access.

    I can't correlate the data with what is presented on the graph.

    What purpose do the symbols serve - why are they all in the same location on graph? What is the data that places those symbols? What do the colors represent - risk level? Which field provides this value?

    Never seen a graph like this and really don't know if can be reproduced in Access.
    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.

  6. #6
    kingofthekassel's Avatar
    kingofthekassel is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2015
    Posts
    25
    So the x-coordinates are the fields that contain "consequence" and the y-coordinates are the fields that contain "probability". all of those are in the same place because they represents a Risk like LK4 where all three series (First, Current, Target) have the same coordinates. The colors do represent risk level. I got this to work in excel, I just don't know how to do this in access.

  7. #7
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,926
    Okay, how to you graph the colors?
    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.

  8. #8
    kingofthekassel's Avatar
    kingofthekassel is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2015
    Posts
    25
    The colors are just part of the background on the graph. That part of the graph stays the same

  9. #9
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,926
    But how did you do it? What causes that 'background'?
    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.

  10. #10
    kingofthekassel's Avatar
    kingofthekassel is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2015
    Posts
    25
    Well, for my excel cube I just manually filled the cells with those colors and then took a screengrab of that 5x5 chart and used that as my fill for the background on the chart.

  11. #11
    kingofthekassel's Avatar
    kingofthekassel is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2015
    Posts
    25
    So in short, it's basically just a picture as my background.

  12. #12
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,926
    Okay, would have to do the same thing with Access. Use an Image control or OLEObject control to embed image and then have graph on top set as transparent.

    However, no idea how to get graph to plot points with your special symbol icons.
    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.

  13. #13
    kingofthekassel's Avatar
    kingofthekassel is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jul 2015
    Posts
    25
    Thank you for your help! Now I am not really well rehearsed in Access VBA, so would you mind helping me get an idea of how to do that?

  14. #14
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,926
    Your options 1 and 2 from original post are not possible.

    No VBA is needed for basic graphing. I have never tried to use images as point symbols. Don't know if it is possible - I have doubts.

    The graph would have to be a control on form or report.
    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.

  15. #15
    kingofthekassel's Avatar
    kingofthekassel is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jul 2015
    Posts
    25
    Hey so I was reading some of your other posts on other forums and I maybe came up with a work-around.

    Referring to this feed: https://www.accessforums.net/forms/n...ess-24894.html

    How can I make it so when I cycle through each Form per RiskNo, I get its unique graph? I was thinking of doing three separate graphs for each "series" (Initial, Current, and Target) and setting them all to transparent background and overlapping them all. But To do this I need the graphs to show only one point at a time.

    i.e. Referring to Previous Chart:
    For RiskNo: FI9
    Graph 1 (Initial): Point (5,4)
    Graph 2 (Current): Point (3,2)
    Graph 3 (Target): Point (1,1)

Page 1 of 2 12 LastLast
Please reply to this thread with any new information or opinions.

Similar Threads

  1. access graph not displaying bars
    By Compufreak in forum Access
    Replies: 5
    Last Post: 07-24-2012, 03:26 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. Graph Report in Access
    By Alaska1 in forum Access
    Replies: 0
    Last Post: 03-07-2011, 08:32 AM
  5. Replies: 3
    Last Post: 01-10-2011, 10:31 AM

Tags for this Thread

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