--
Dim bd1 As New GroupTableBuilder("统计表1",DataTables("入库明细"))
Dim dt1 As fxDataSource
bd1.Groups.AddDef("货号") \'根据型号分组
bd1.Groups.AddDef("颜色") \'根据颜色分组
bd1.Groups.AddDef("品类") \'根据品类分组
bd1.Totals.AddDef("尺码_1","入库_尺码_1")
bd1.Totals.AddDef("尺码_0","入库_尺码_0")
bd1.Totals.AddDef("尺码_2","入库_尺码_2")
bd1.Totals.AddDef("尺码_4","入库_尺码_4")
bd1.Totals.AddDef("尺码_6","入库_尺码_6")
bd1.Totals.AddDef("尺码_8","入库_尺码_8")
bd1.Totals.AddDef("尺码_10","入库_尺码_10")
bd1.Totals.AddDef("数量","入库_数量")
dt1 = bd1.BuildDataSource()
现在是这样写的 根据 货号 颜色 品类 分组,那如果再加上一个仓库 bd1.Groups.AddDef("仓库") \' 就会出现 例如:8200004这款如果有2个仓库 变成2条记录了