I have a report that is linked to a main report by the grouping value in the main report. I want to get the latest time and the earliest time from the detail in the subreport and display that in the main report.
This is the formula:
WhilePrintingRecords;
Shared stringVar vEarlyECGStrip;
if{ecg_defib.ecgr_time}=Minimum({ecg_defib.ecgr_time})then
vEarlyECGStrip:={ecg_defib.strip}
The subreport is placed in the group header. It is linked to the main report on the grouping item. That all works fine. It lists all the items in the detail and in another column, displays the highest value and the lowest value.
The group has multiple headers. The subreport is in one of those. In an earlier header for the same group, I want also display the same values but it is bringing in the earlier groups value.
So for the same group but in different headers for the group, I am getting two different values.
This is the formula:
WhilePrintingRecords;
Shared stringVar vEarlyECGStrip;
if{ecg_defib.ecgr_time}=Minimum({ecg_defib.ecgr_time})then
vEarlyECGStrip:={ecg_defib.strip}
The subreport is placed in the group header. It is linked to the main report on the grouping item. That all works fine. It lists all the items in the detail and in another column, displays the highest value and the lowest value.
The group has multiple headers. The subreport is in one of those. In an earlier header for the same group, I want also display the same values but it is bringing in the earlier groups value.
So for the same group but in different headers for the group, I am getting two different values.