I'd make a new field in the table of type calculation called c_Type1.
With the calculation: If ( FIELDNAME = "1" ; 1 ; 0 )
and an other field of type Summary called s_Total_Type1
with the summary as a Total of c_Type1
The Summary field now will display the number of records with value 1 in FIELDNAME that are in the found set.
And do similar for "If the content in the field = "2""
it works, tnxs!
Or just use a single summary field that counts a never empty field. set up a layout with a sub summary layout "when sorted by FieldName". Put your summary field in the sub summary layout part and sort your records by FieldName.