I have a subreport that produces its own data.
DateFrom_Shared and DateTo_Shared are from the Main report. This works.
Group is set to employeeid. The employeeid is linked to the main report and is working.
Detail: is supressed since I only wanted totals to print. this works.
Detail section:
Hours_Daily_Charged
numbervar Hours_Daily_Charged_Total;
if ({TE.TEDate} >= {@DateFrom_Shared} and {TE.TEDate} <= {@Dateto_Shared}) then
Hours_Daily_Charged_Total := Hours_Daily_Charged_Total +{TE.TEHours}
else
0
GF1 Section: Display_Hours_daily_charged variable
Whileprintingrecords ;
numbervar Hours_Daily_Charged_Total ;
Hours_Daily_Charged_Total
GH1 Section: Reset_Hours_daily_charged
Whileprintingrecords;
numbervar Hours_Daily_Charged_Total;
Hours_Daily_Charged_Total := 0
If there is no value, 0, in the last record for the group, the total is right. I am adding the last value into the total. I have even tried adding a group I did not need below my group to do the reset there.
Please I need help.
DateFrom_Shared and DateTo_Shared are from the Main report. This works.
Group is set to employeeid. The employeeid is linked to the main report and is working.
Detail: is supressed since I only wanted totals to print. this works.
Detail section:
Hours_Daily_Charged
numbervar Hours_Daily_Charged_Total;
if ({TE.TEDate} >= {@DateFrom_Shared} and {TE.TEDate} <= {@Dateto_Shared}) then
Hours_Daily_Charged_Total := Hours_Daily_Charged_Total +{TE.TEHours}
else
0
GF1 Section: Display_Hours_daily_charged variable
Whileprintingrecords ;
numbervar Hours_Daily_Charged_Total ;
Hours_Daily_Charged_Total
GH1 Section: Reset_Hours_daily_charged
Whileprintingrecords;
numbervar Hours_Daily_Charged_Total;
Hours_Daily_Charged_Total := 0
If there is no value, 0, in the last record for the group, the total is right. I am adding the last value into the total. I have even tried adding a group I did not need below my group to do the reset there.
Please I need help.