想将多个统计表综合起来
Dim dt1 As fxDataSource
Dim g As New GroupTableBuilder("统计表2", DataTables("订单主表"))
g.Groups.AddDef("客户全称")
g.Totals.AddDef("总金额")
g.FromServer = True
g.Build()
dt1 = g.BuildDataSource()
Dim dt2 As fxDataSource
Dim b As New SQLGroupTableBuilder("统计表1","退货主表")
b.C
b.Groups.AddDef("客户全称")
b.Totals.AddExp("总已付","总金额-少退金额-实退金额")
b.Build
dt2 = b.BuildDataSource()
dt1.Combine("客户全称",dt2,"客户全称")
Tables("统计_Table1").DataSource = dt1
执行出来总提示错误,帮忙看下
我感觉是红色那句有问题,但我就是要这个算法的表达式