Dim b As New GroupTableBuilder("统计表1",DataTables("订单"))b.Filter = "[客户] = 'CS01'" '仅统计客户为CS01的记录b.Groups.AddDef("产品") '根据产品分组b.Totals.AddDef("数量") '对数量进行统计Tables("窗口1_Table1").DataSource = b.BuildDataSource()