统计代码如下
Dim g1 As New GroupTableBuilder("月统计表", DataTables("学生签到明细表"))
Dim dt1 As fxDataSource
g1.Groups.AddDef("上课日期", DateGroupEnum.Year, "年")
g1.Groups.AddDef("上课日期", "月")
g1.Totals.AddDef("学号", AggregateEnum.Count)
g1.Totals.AddDef("课时标准")
dt1 = g1.BuildDataSource()
Dim g2 As New GroupTableBuilder("统计表1", DataTables("教师签到表"))
Dim dt2 As fxDataSource
g2.Groups.AddDef("上课日期", DateGroupEnum.Year, "年")
g2.Groups.AddDef("上课日期", "月")
g2.Totals.AddDef("单节课时费")
dt2 = g2.BuildDataSource()
dt1.Combine("上课日期",dt2,"上课日期") '将销售统计数据组合到进货统计数据
dt1.Show("月统计表")
MainTable = Tables("月统计表")
报错内容 无法找到列 上课日期。
[此贴子已经被作者于2021/9/24 21:08:51编辑过]