R
robert demo via AccessMonster.com
Has anyone run into a problem with using the RowSource property for a chart
in a report. The line of code is:
Me.Usage_Chart1.RowSource = "Some SQL Select Statement"
I keep getting the following error:
"You entered an expression that has an invalid reference to the property
RowSource"
I'm quite certain that the SQL Select statement is fine. When I take the
Select statement and remove the quotes and place it in the RowSource line
of the Data tab of the Properties sheet for the chart, the chart displays
fine. However, I can't just leave it at this, because there is one
parameter variable in the Select statement that varies depending upon user
selected criteria (when I placed the statement in the RowSource line, I
selected a specific parameter).
I have charts in forms that use identical code and they work fine.
One potentially important thing I've noticed. When I type the following in
the VBA editor in a form:
Me.Usage_Chart.RowSource
I noticed that as I'm typing a list comes up after "Chart." that allows me
to select a property. The property RowSource is in that list on the FORM
VBA code. It is NOT in the list for the REPORT VBA code.
Could this be the problem? I've heard that Access reports have "issues".
Has anyone experienced this one?
Thanks.
in a report. The line of code is:
Me.Usage_Chart1.RowSource = "Some SQL Select Statement"
I keep getting the following error:
"You entered an expression that has an invalid reference to the property
RowSource"
I'm quite certain that the SQL Select statement is fine. When I take the
Select statement and remove the quotes and place it in the RowSource line
of the Data tab of the Properties sheet for the chart, the chart displays
fine. However, I can't just leave it at this, because there is one
parameter variable in the Select statement that varies depending upon user
selected criteria (when I placed the statement in the RowSource line, I
selected a specific parameter).
I have charts in forms that use identical code and they work fine.
One potentially important thing I've noticed. When I type the following in
the VBA editor in a form:
Me.Usage_Chart.RowSource
I noticed that as I'm typing a list comes up after "Chart." that allows me
to select a property. The property RowSource is in that list on the FORM
VBA code. It is NOT in the list for the REPORT VBA code.
Could this be the problem? I've heard that Access reports have "issues".
Has anyone experienced this one?
Thanks.