R
robert demo via AccessMonster.com
In code, how do I refer to chart names on a report that are exactly the
same except for the last number?
Example:
Usage_Chart1, Usage_Chart2, Usage_Chart3, etc.
I would like to be able to iterate through the charts to set the RowSource
property.
For j = 1 to 3
Me("Usage_Chart" & j).RowSource = 'Some Select statement'
Next j
Me("Usage_Chart" & j) seems to be generating the following error:
"You entered an expression that has an invalid reference to the property
RowSource'"
Thanks for any help.
same except for the last number?
Example:
Usage_Chart1, Usage_Chart2, Usage_Chart3, etc.
I would like to be able to iterate through the charts to set the RowSource
property.
For j = 1 to 3
Me("Usage_Chart" & j).RowSource = 'Some Select statement'
Next j
Me("Usage_Chart" & j) seems to be generating the following error:
"You entered an expression that has an invalid reference to the property
RowSource'"
Thanks for any help.