| re: Issues with repainting a MSGraph object
Scott wrote:[color=blue]
> I have a unbound MS graph object built as a pie chart that I set to a
> value list and I am updating programatically. Everything works except
> that the graph does not repaint except for when the entire subroutine
> is completed.
>
> I launch the sub from a command button on the same tab as the graph
> object. I have tired to force a requery of the msgraph, a refresh of
> the form and even a repaint of the form. I have put in waits and
> msgboxs to see if it is a timing / load issue. No luck I simply can
> not get the chart to update until I exit the subroutine back to the
> form.
>
> Any ideas? Any events I am missing?
>
> Thanks[/color]
Are you using MyChartObject.Update at the en of your changes?
I also had the same problem. I found that you had to force the focus to be
on the graph object after working on it.
SetupChart Me![MyGraph], Me![ChartID] 'your code that sets up the chart
Me![MyGraph].SetFocus 'force the focus to be on the chart
It worked for me.
--
regards,
Br@dley |