比如
Dim g As New GroupTableBuilder("统计表2", DataTables("aaa"))g.Groups.AddDef("班级")g.Totals.AddDef("科类", AggregateEnum.Count)g.filter = "科类 like '外语%'"g.Build()MainTable = Tables("统计表2")
http://www.foxtable.com/webhelp/scr/2305.htm