Changing LinkChildFields prop. in chart

R

Russell

I get the error 2455, 'You entered an expression that has
an invalid reference to the property LinkChildFields' for
the following case.

I am attempting in code to change the LinkChildFields
property of a chart embedded in a Report. I get this
error only when I attempt it in the Report_Open event and
not if I open the Report in design mode at runtime.
Further, if I step through the code after getting the
error at runtime, in the Form_Open event, it will not
error again. Trapping the error and rerunning the code
line does not work, it errors continuously.

This is the code snippet that fails:

Dim ctl as control
Set ctl = Me.<chart name>.Properties("LinkChildFields")
ctl.Properties(.Property) = <some string value>

Any ideas?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top