如何将红字代码改为自定义,选择复选框的分组?
Dim b As New CrossTableBuilder("统计表1", DataTables("表A"))
b.HGroups.AddDef("部门") '
b.VGroups.AddDef("交货日期", DateGroupEnum.Year, "{0}年") '
b.VGroups.AddDef("交货日期", "{0}月") '
b.Totals.AddDef("数量","数量") '
b.Totals.AddDef("金额","金额") '
b.VerticalTotal= True '
b.HorizontalTotal = True '
Tables("窗口_Table1").DataSource = b.BuildDataSource() '
For Each s As String In e.Form.Controls("CheckedComboBox1").text.split(",")'
b.Groups.AddDef(s)
Next