Value to store Initial Value Reset at --------------------------------------------------------------- prevShip currShip currShip End of report currShip Ship Ship End of report nShip nShip+iif(prevShip<>currShip,1,0) 1 End of reportnShip will count the groups.