Total certian Groups
I am trying to only total a group that has atleast one field that is populated with a sting of VA. I have it Grouped by Carton ID and the VA and TX is a Code and type of the carton. I need to know the total units in a carton if a VA is in the group. I have tried OnfirstRecord but i can only pick the lines with the VA in them. Any help would be appricated.
(Carton ID) (CC) (CT) (Qty)
00000111515
00000111515 VA TX 2.00
00000111515 VA TX 3.00
00000111515 4.00
00000111515 2.00
00000111616
00000111616 3.00
00000111616 5.00
I am trying to only total a group that has atleast one field that is populated with a sting of VA. I have it Grouped by Carton ID and the VA and TX is a Code and type of the carton. I need to know the total units in a carton if a VA is in the group. I have tried OnfirstRecord but i can only pick the lines with the VA in them. Any help would be appricated.
(Carton ID) (CC) (CT) (Qty)
00000111515
00000111515 VA TX 2.00
00000111515 VA TX 3.00
00000111515 4.00
00000111515 2.00
00000111616
00000111616 3.00
00000111616 5.00