I am creating a report in an Access Project. The report contains a graph.
I couldn't find out how to specify the RowSource of the graph. I wanted to supply the rowsource when opening the report, like this.
Dim objGraph As Object
Set objGraph = Me.Histogram
SQLString = " SELECT ........"
objGraph.RowSource = SQLString
The last row however gives an error message - "you have entered an invalid reference to the property RowSourceType".
What am I doing wrong here.
Thanks for the help.
SWK
I couldn't find out how to specify the RowSource of the graph. I wanted to supply the rowsource when opening the report, like this.
Dim objGraph As Object
Set objGraph = Me.Histogram
SQLString = " SELECT ........"
objGraph.RowSource = SQLString
The last row however gives an error message - "you have entered an invalid reference to the property RowSourceType".
What am I doing wrong here.
Thanks for the help.
SWK