Changing the LinkChildFields property in code

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?
 
T

TC

Answered elsewhere.

Russell, please don't MULTI-POST. Multi-posting is where you send an
identical message seperately, to different newsgroups. Instead, CROSS-post.
That means sending the message once, to all the relevant newsgroups
simultaneously.

Multi-posting wastes everyones' time. Google search for the terms
"multipost", "crosspost" and "netiquette" for more information.

HTH,
TC
 

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