Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Graphs (Charts?), Forms and Real Time Updates

Status
Not open for further replies.

pdupreez

Technical User
May 16, 2001
49
ZW
I would like to have a form with a combo box, indicating the field names in a table. After the user selects a field a graph (defined in an unbound object frame) must be displayed using two fields, of which the selected one from the combo box , is the y-axis data. I can however not seem to update the rowsource for the graph, or rather, I can update the rowsource, but the graph does not reflect the changes, how do you programmatically change the graph data, or field source?

 
Just keep working on it. I do what you want to do.

I seem to remember that you can choose to have the chart be linked to data on the form. What you will need to do is first set up the combo boxes, then do the chart. Before you build the chart you might want to try a subform that is filterd by the combo boxes-set it to data sheet view so it mimics the data display that will be on the chait, just to make sure you are getting the right response from your combo box.
 
I have worked out a solution. By making my datasource for the graph a Table/Query, and creating the query (in VBA) everytime after I have selected a field, I can update the graph at will. I use 4 combo boxes (for 4 data fields) and is able to select alternative axis etc as required.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top