B
bobby
Here one for the pivotchart expert:
Situation: I have a pivotchart on a form that can only show in pivotchart
view. The forms recordsource is a stored procedure. The form is placed on a
report, so users can print it easily. It all works fine.
The problem: It is a dynamic pivotchart in that the stored procedure is
parameterized. I send the parameters to the report in the OpenArgs argument
of DoCmd.OpenReport statement. Here is where the InputParameters property
comes into the picture. You would think that is exactly what it is
therefore, and for "normal" forms it works a charm. But when it comes to
pivotcharts the user will get prompted to enter the parameter values no
matter how I try to set the parameters. It is as if the stored procedure is
run before the form opens, so it doesn't give me a change to set the
parameters.
If I dynamically set the recordsource of the form, the setup of the
pivotchart is reset. I will then have to dynamically have to create the
whole pivotchart in code which I would rather avoid.
Does someone have experience with this?
Situation: I have a pivotchart on a form that can only show in pivotchart
view. The forms recordsource is a stored procedure. The form is placed on a
report, so users can print it easily. It all works fine.
The problem: It is a dynamic pivotchart in that the stored procedure is
parameterized. I send the parameters to the report in the OpenArgs argument
of DoCmd.OpenReport statement. Here is where the InputParameters property
comes into the picture. You would think that is exactly what it is
therefore, and for "normal" forms it works a charm. But when it comes to
pivotcharts the user will get prompted to enter the parameter values no
matter how I try to set the parameters. It is as if the stored procedure is
run before the form opens, so it doesn't give me a change to set the
parameters.
If I dynamically set the recordsource of the form, the setup of the
pivotchart is reset. I will then have to dynamically have to create the
whole pivotchart in code which I would rather avoid.
Does someone have experience with this?