以文本方式查看主题 - 易表在线答疑 (http://egrid2000.com/dvbbs/index.asp) -- 用户社区 (http://egrid2000.com/dvbbs/list.asp?boardid=2) ---- [求助]关于统计问题 (http://egrid2000.com/dvbbs/dispbbs.asp?boardid=2&id=21683) |
||||
-- 作者:swg-1954 -- 发布时间:2012/8/14 20:23:00 -- [求助]关于统计问题
|
||||
-- 作者:wjq1072 -- 发布时间:2012/8/14 21:05:00 -- 设置按钮公式试试? AddCol(GridName,"p",0, False ) And EvalFor(GridName,"p","If(Row=FindRow(GridName,""台区编号"",""="",[台区编号],-1),""A"","""")") And EvalFor(GridName,"终端资产号","CountFor(GridName,""台区编号"",""="",[台区编号],""终端资产号"","" <> "","""")-1","p","=","A") And DeleteCol(GridName,"p") |
||||
-- 作者:wjq1072 -- 发布时间:2012/8/14 21:14:00 --
|
||||
-- 作者:swg-1954 -- 发布时间:2012/8/14 22:00:00 -- 谢谢wjq1072管理员,让我认真学习这个公式,理解公式的运用为什么可以这样。再次谢谢wjq1072管理员。 |
||||
-- 作者:swg-1954 -- 发布时间:2012/8/17 12:21:00 -- 请教公式的详解
|
||||
-- 作者:wjq1072 -- 发布时间:2012/8/17 14:43:00 -- AddCol(GridName,"p",0, False ) And EvalFor(GridName,"p","If(Row=FindRow(GridName,""台区编号"",""="",[台区编号],-1),""A"","""")") And EvalFor(GridName,"终端资产号","CountFor(GridName,""台区编号"",""="",[台区编号],""终端资产号"","" <> "","""")-1","p","=","A") And DeleteCol(GridName,"p") |
||||
-- 作者:swg-1954 -- 发布时间:2012/8/17 19:02:00 -- 请教的是:EvalFor(GridName,"p","If(Row=FindRow(GridName,""台区编号"",""="",[台区编号],-1)这里的“-1”是最后符合条件的行,而EvalFor(GridName,"终端资产号","CountFor(GridName,""台区编号"",""="",[台区编号],""终端资产号"","" <> "","""")-1","p","=","A")这里的“-1”代表什么意思? |
||||
-- 作者:wjq1072 -- 发布时间:2012/8/17 19:17:00 -- 呵呵,记录数减1啊 |
||||
-- 作者:swg-1954 -- 发布时间:2012/8/17 19:21:00 -- 噢!对头!谢谢!茅塞顿开。 |