以文本方式查看主题 - Foxtable(狐表) (http://foxtable.com/bbs/index.asp) -- 专家坐堂 (http://foxtable.com/bbs/list.asp?boardid=2) ---- 交叉统计的时间统计 (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=123251) |
-- 作者:susu312 -- 发布时间:2018/8/10 16:10:00 -- 交叉统计的时间统计 Dim nums1() As String={"sex","age","birth", _ For Each r As Row In Tables("统计2").Rows For Each r As Row In Tables("统计3").Rows If e.Form.Controls("CheckBox1").Checked = True Then \'水平方向生成汇总 If e.Form.Controls("CheckBox2").Checked = True Then \'垂直方向生成汇总
老师,我的确定按钮的代码如上,
输入内容如图, 但是报错,请老师帮忙看一下 |
-- 作者:有点甜 -- 发布时间:2018/8/10 16:57:00 -- 要继续判断
If r("日期分组") = "年" Then b.VGroups.AddDef(nums1(index), DateGroup.Year, r("模式")) ElseIf r("日期分组") = "月" Then b.VGroups.AddDef(nums1(index), DateGroup.Month, r("模式")) End If |