for i=1 to m.lnFields if !inlist(field(i),"Field1","Field2","Field3") lcGroupBy=m.lcGroupBy+... endif next