这里怎么是个bd1? 应该bd2:
Dim bd2 As New GroupTableBuilder("统计表2",DataTables("成品出库明细表"))
Dim dt2 As fxDataSource
bd2.Groups.AddDef("地板型号") '根据型号分组
bd1.Groups.AddDef("批次")
bd2.Totals.AddDef("计算件数","出库件数") '对数量进行统计
dt2 = bd2.BuildDataSource()
还有这里应该是bd3:
Dim bd3 As New GroupTableBuilder("统计表3",DataTables("退货明细表"))
Dim dt3 As fxDataSource
bd3.Groups.AddDef("地板型号") '根据型号分组
bd1.Groups.AddDef("批次")
bd3.Totals.AddDef("退货件数","退货件数") '对数量进行统计
dt3 = bd3.BuildDataSource()