I have created a form that through the use of check boxes, text fields etc, a user can select a report to run and
also include some search parameters. The problem I am having is for one of my reports that will print out
overall Training Costs per division, the user can select to print the totals for all division or one particular
division and also include only totals for a specific time period(They enter a start and end date). When the user
clicks on a button to run the report, the following line of code is executed:

DoCmd.OpenReport strDocName,Normal, , StrCriterion

strDocName=variable storing the Report name
StrCriterion = variable storing the search parameters ie( sdate between dt1 and dt2. etc).

The problem I am having is I have created a report that
prints out the divisional total but also want to include a
pie chart that graphically displays the same results. The
actual report data is correct but can't seem to figure out how to make the pie chart incorporate the search
parameters. Is there a way to incorporate the data in the StrCriterion variable in the pie chart?
Thanks!