-- [求助]数据无法更新
Dim bd1 As New SQLGroupTableBuilder("统计表1","管家销售明细账")
Dim dt1 As fxDataSource
bd1.Groups.AddDef("物流单号") \'根据品名分组
bd1.Groups.AddDef("物流方式") \'根据型号分组
bd1.Groups.AddDef("州省") \'根据型号分组
bd1.Totals.AddDef("包裹重量") \'对数量进行统计
dt1 = bd1.BuildDataSource()
Dim bd2 As New SQLGroupTableBuilder("统计表2","运费明细")
Dim dt2 As fxDataSource
bd2.Groups.AddDef("物流单号") \'根据品名分组
bd2.Totals.AddDef("运费金额") \'对数量进行统计
dt2 = bd2.BuildDataSource()
Dim bd3 As New SQLGroupTableBuilder("统计表3","物流档案")
Dim dt3 As fxDataSource
bd3.Groups.AddDef("物流方式") \'根据品名分组
bd3.Groups.AddDef("州省") \'根据型号分组
bd3.Totals.AddDef("首重") \'对数量进行统计
bd3.Totals.AddDef("首重计费") \'对金额进行统计
bd3.Totals.AddDef("续重") \'对数量进行统计
bd3.Totals.AddDef("续重计费") \'对金额进行统计
dt3 = bd3.BuildDataSource()
Dim nms As String() = {"物流单号"} \'指定连接列
Dim nms1 As String() = {"物流方式","州省"}
dt1.Combine(nms,dt2,nms) \'将销售统计数据组合到进货统计数据
dt1.Combine(nms1,dt3,nms1) \'将退货统计数据组合到进货统计数据
dt1.Show("统计表1") \'显示统计结果
发现物流档案的数据修改后,统计表1里的数据没有对应变更过来,不知问题在哪里