Dim tb3 As Table = Tables("课服管理_table3")
Dim xq As String = e.Form.Controls("combobox1").text
Dim b As New sqlGroupTableBuilder("tj","活动选择")
b.C
b.Filter="学校 = '" & _usergroup & "' And 学期 = '" & xq & "'"
b.Groups.AddDef("班级") '根据产品名称分组
b.Groups.AddDef("活动") '根据产品名称分组
b.Totals.AddExp("选择人数","case when 活动 is null then 0 else 1 end")
b.Subtotal = True '
tb3.DataSource =b.build()
请问老师,这个分类小计和总计没有呢?要怎么才能有小计和总计