看看合成的条件是什么:
Dim et As Date = e.Form.Controls("ETime").value
Dim year As Integer = et.Year
Dim month As Integer = et.Month
Dim st As Date
st = new Date(Year,Month,1)
Dim bd1 As New SQLGroupTableBuilder("统计表1","入库")
bd1. 连接外雇数据源
Dim dt1 As fxDataSource
bd1.Groups.AddDef("产品类型")
bd1.Groups.AddDef("品番")
bd1.Groups.AddDef("库位")
bd1.Totals.AddDef("数量","入库_数量") '对数量进行统计
bd1.filter = "{入库}.日期 >= '" & cdate(st) & "' And {入库}.日期 <= '" & cdate(et) & "'"
Messagebox.show(bd1.Filter)
dt1 = bd1.BuildDataSource()