1: 2: 3: 4: 5:
SELECT CustCount,Count(CustCount) AS CustIDsCount FROM (SELECT (IIf(Nz(A,0)>0,1,0)+IIf(Nz(B,0)>0,1,0)+IIf(Nz(C,0)>0,1,0)+IIf(Nz(D,0)>0,1,0)+IIf(Nz(E,0)>0,1,0)) AS CustCount FROM Table1) GROUP BY CustCount ORDER BY CustCount