Question : Excel graph in access not updating

I want to graph some data that I have in an Access 2003 db.  I know how to automate Excel and pump the data out to Excel, where I have a pre-made graph formatted as I like.  When the new data arrives, the graph will recalculate and reflect the data changes.  

The problem is I don't know how to correctly link the graph back to Access so that it will update the object in Access when new data is supplied to Excel and the graph redraws so that I can display the graph as part of an Access report.  

I can't use the Chart Wizard in Access because it is limited to six data series.  

I have created a table in Access called tblGraphs, and I have one column in that table where I specified the data type as OLE Object.  On the report where I want the graph to show, I have created a bound object frame and set the control source to the field on the tblGraphs into which I pasted the Excel chart. (It didn't give me an option to link it instead of pasting it).  The other properties of the bound object frame are: OLE Type Allowed = Linked, Class = MSGraph.Chart8, and the Update Options is set to automatic.  

I have tried requering the bound object frame when the report loads, and I have tried requering it in the Detail_Format event of the report detail.  Nothing seems to work.

Thanks in advance for your help.
Ron

Answer : Excel graph in access not updating

What you see in design view is only a representation or "Placeholder" for the graph.

The easiest thing to do would be to try swapping the row and columns.

Open the chart in design View
Double click the chart, to go into "Edit" mode.
On the new toolbar you will find the icons for "Series in rows" and "Series in Columns".
Toggle these settings and view the chart with both options, and see if this helps.

Otherwise you need to post a simple sample of the database
Random Solutions  
 
programming4us programming4us