I have produced a report with a chart in.
I wanted to be able to be able to change the rowsource for the chart using code. I used the on open event for the report and changed the rowsource property for the chart embedded within the report to sql A if one condition was met or sql B if second condition is met.
When the report runs it comes up with the fact that has an invalid reference to the rowsource. I go to debug and tried to step through the code and it works. This is obviously no good as I dont want the user to step through my code.
I am not sure what is causing this problem.
Any ideas?
I wanted to be able to be able to change the rowsource for the chart using code. I used the on open event for the report and changed the rowsource property for the chart embedded within the report to sql A if one condition was met or sql B if second condition is met.
When the report runs it comes up with the fact that has an invalid reference to the rowsource. I go to debug and tried to step through the code and it works. This is obviously no good as I dont want the user to step through my code.
I am not sure what is causing this problem.
Any ideas?