Hi Matt,
You'd need five variables - one for each Group Name.
Place this formula on the Details section:
If OnFirstRecord then
(
shared booleanvar grp1 := false;
shared booleanvar grp2 := false;
shared booleanvar grp3 := false;
shared booleanvar grp4 := false;
shared booleanvar grp5 := false;
);
If GroupName({Group_Field}) = 'First Value in the specified order' AND {Tracking_info} = 'Track Value to be searched' then
shared booleanvar grp1 := TRUE
else If GroupName({Group_Field}) = 'Second Value in the specified order' AND {Tracking_info} = 'Track Value to be searched' then
shared booleanvar grp2 := TRUE
else If GroupName({Group_Field}) = 'Third Value in the specified order' AND {Tracking_info} = 'Track Value to be searched' then
shared booleanvar grp3 := TRUE
else If GroupName({Group_Field}) = 'Fourth Value in the specified order' AND {Tracking_info} = 'Track Value to be searched' then
shared booleanvar grp4 := TRUE
else If GroupName({Group_Field}) = 'Fifth Value in the specified order' AND {Tracking_info} = 'Track Value to be searched' then
shared booleanvar grp5 := TRUE;
Assuming you have five text boxes (each with names of the five groups), you need to add a conditional suppression formula that refers to the shared variables.
For e.g. Text box 1 that has the name of the first group, would use this formula:
shared booleanvar grp1;
Text box 2 would use:
shared booleanvar grp2;
and so on..
-Abhilash