I'm trying to get the criteria for a chart to come from a form. In a form the user can select the report they won't to run and the other parameters. Instead of doing this through a parameter query I won't it to pass via string criteria
(example:
strItems = Me.AFENumber.Value 'Use the value of Me.AFENumber as the criteria
strDocName = Me.cmbPreview.Value 'Open Report named the same as the value in Me.cmbPreview
DoCmd.OpenReport strDocName, acPreview, , strItems )
I can get it to run fine with the report itself, but when I try using this method on the chart it doesn't work. Is it possible to filter a chart this way?
Eric
(example:
strItems = Me.AFENumber.Value 'Use the value of Me.AFENumber as the criteria
strDocName = Me.cmbPreview.Value 'Open Report named the same as the value in Me.cmbPreview
DoCmd.OpenReport strDocName, acPreview, , strItems )
I can get it to run fine with the report itself, but when I try using this method on the chart it doesn't work. Is it possible to filter a chart this way?
Eric
Last edited: