-- [求助]报表统计
Dim b As New SQLGroupTableBuilder("统计表1", "党员信息表")
b.C
b.AddTable("党员信息表", "姓名", "性别", "党龄") \'添加统计表
b.Groups.AddDef("所属党组织")
b.Totals.AddDef("性别", AggregateENUM.Sum, "男")
b.Totals.AddDef("性别", AggregateENUM.Sum, "女")
b.Totals.AddExp("分布_10以下", "iif(党龄 < 10,1,0)")
b.Totals.AddExp("分布_10-20", "iif(党龄 >= 10 And 分数 < 20,1,0)")
\'b.Totals.AddExp("分布_70-80", "iif(分数 >= 70 And 分数 < 80,1,0)")
\'b.Totals.AddExp("分布_80-90", "iif(分数 >= 80 And 分数 < 90,1,0)")
\'b.Totals.AddExp("分布_90-100", "iif(分数 >= 90 And 分数 < 100,1,0)")
\'b.Totals.AddExp("分布_100-110", "iif(分数 >= 100 And 分数 < 110,1,0)")
\'b.Totals.AddExp("分布_110-120", "iif(分数 >= 110 And 分数 < 120,1,0)")
\'b.Totals.AddExp("分布_120-130", "iif(分数 >= 120 And 分数 < 130,1,0)")
\'b.Totals.AddExp("分布_130-140", "iif(分数 >= 130 And 分数 < 140,1,0)")
\'b.Totals.AddExp("分布_140以上", "iif(分数 >= 140,1,0)")
b.build()
MainTable = Tables("报表管理_table1")
为什么运行错误呢