Chart on Form.

R

Rubiano

I have a graph in a form using data from a table. The data
in the table is changed by a selection from the user, but
the graph is not updated when the data in the table change.
How can I get the graph updated each time the data in the
table change?

Thanks in advance,
 
A

Ashley Bragg

When the user has made the selection on the form, attach some code to say, a
button named "update chart" and then just run the code
"chartname.Requery". The .Requery method should update the chart's source
and work as functioned. You can attach that code to any event.

Regards

Ashley Bragg
 
R

Rubiano

Thanks a lot Ashley. It worked.

Ashley Bragg said:
When the user has made the selection on the form, attach some code to say, a
button named "update chart" and then just run the code
"chartname.Requery". The .Requery method should update the chart's source
and work as functioned. You can attach that code to any event.

Regards

Ashley Bragg
 
R

Rubianob

Thanks Ashley. It worked.

Ashley Bragg said:
When the user has made the selection on the form, attach some code to say, a
button named "update chart" and then just run the code
"chartname.Requery". The .Requery method should update the chart's source
and work as functioned. You can attach that code to any event.

Regards

Ashley Bragg
 
Top