先这样写
Dim gb As new SQLGroupTableBuilder("统计表1","入库单")
Dim dt As DataTable
gb.Groups.AddDef("大类")
gb.Groups.AddDef("小类")
gb.Groups.AddDef("存货编码")
gb.Groups.AddDef("物料名称")
gb.Groups.AddDef("物料规格")
gb.Groups.AddDef("物料单位")
gb.Groups.AddDef("品牌产地")
gb.Groups.AddDef("客户名称")
gb.Groups.AddDef("辅类")
gb.Totals.AddDef("数量")
gb.Totals.AddDef("金额")
gb.Build
再这样写
Dim gb As new SQLGroupTableBuilder("统计表1","入库单")
Dim dt As DataTable
gb.Groups.AddDef("大类")
gb.Groups.AddDef("小类")
gb.Totals.AddDef("数量")
gb.Build