I
Ian
I have a microsoft chart embedded in a form, and supply
the SQL string for its rowsource property from VBA.
After setting this I want to go on and perform other
manipulations on the chart, which depend on the data
contained in the chart. The problem is that the chart
takes a finite time to retrieve all its records after
setting the rowsource, during which the VBA code is still
executing and so gets incorrect information on the number
of series and points when it interrogates the incompletely
updated chart.
Is there a way to force Graph to update completely before
continuing with VBA execution, or it there a way in VBA to
test whether the chart has completed updating?
At the moment the only thing I can do is set a timer to
trigger the further manipulation of the chart after a
decent period, which allows the chart to finish updating.
Not very satisfactory!
Thanks
Ian
the SQL string for its rowsource property from VBA.
After setting this I want to go on and perform other
manipulations on the chart, which depend on the data
contained in the chart. The problem is that the chart
takes a finite time to retrieve all its records after
setting the rowsource, during which the VBA code is still
executing and so gets incorrect information on the number
of series and points when it interrogates the incompletely
updated chart.
Is there a way to force Graph to update completely before
continuing with VBA execution, or it there a way in VBA to
test whether the chart has completed updating?
At the moment the only thing I can do is set a timer to
trigger the further manipulation of the chart after a
decent period, which allows the chart to finish updating.
Not very satisfactory!
Thanks
Ian