Hello again...
Here is the format of my report:
Report header
Page header (suppressed)
Group header (suppressed)
Group details (by employee, summarizing calls) (suppressed)
Group footer (shows sum of calls and goal for each employee)
Report footer (total calls for all employees, includes the subreport to read the employee table and sum employee goals - just reads all records and does a sum of the goal field - has the details suppressed with the report footer displaying the goal total I need)
Page footer (suppressed)
The main report footer also has a bunch of other calculations where I need to use the goal total.
For the shared variable, here's what I have:
----Main Report.TotalMigrGoalMain----
WhilePrintingRecords;
Shared NumberVar MigrGoalTotal;
MigrGoalTotal
----SubReport.TotalMigrGoalSub----
WhilePrintingRecords;
Shared NumberVar MigrGoalTotal:= Sum ({USysEmployees_Table2.MigrGoal})
I have the name of the formulas different with the variable names the same. The subreport which sets that variable is run in the report footer. In the main report I displayed the MigrGoalTotal formula in the report header (not suppressed), in the report footer, and in the page footer and they all show zero. I've unsuppressed the page footer to test the value of the variable.
I do appreciate your help with this. It has me totally stumped. Thank you!