以文本方式查看主题 - Foxtable(狐表) (http://foxtable.com/bbs/index.asp) -- 专家坐堂 (http://foxtable.com/bbs/list.asp?boardid=2) ---- 表达式列增加合计列 (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=158638) |
-- 作者:guosheng -- 发布时间:2020/11/27 13:24:00 -- 表达式列增加合计列 该表达式列的公式该怎么写啊? iif 编号=当前行的编号,sum([发生额] 编号 发生额 总额(表达式列)A01 10 30 A01 20 30 A02 20 50 A02 30 50 |
-- 作者:有点蓝 -- 发布时间:2020/11/27 13:35:00 -- 没有这种用法。到datacolchanged事件使用代码处理 |
-- 作者:guosheng -- 发布时间:2020/11/27 14:10:00 -- 编号 发生额 总额 A01 10 30 A01 20 30 A02 20 50 A02 30 50 数据量太大,直接死机了,等好久也出不来结果,有什么好办法吗? For Each r As Row In Tables("表A").Rows r("总额")=Tables("表A").compute("sum(发生额)","编号=\'"& r("编号") &"\'") Next [此贴子已经被作者于2020/11/27 14:09:54编辑过]
|
-- 作者:有点蓝 -- 发布时间:2020/11/27 14:19:00 -- If e.DataCol.Name = "发生额" Then e.DataRow("总额")=e.datatable.compute("sum(发生额)","编号=\'"& e.DataRow("编号") &"\'") End If |