易表在线答疑技术与交流用户社区 → 如何将分组行汇总到一个新表中形成新的记录?


  共有12653人关注过本帖树形打印复制链接

主题:如何将分组行汇总到一个新表中形成新的记录?

帅哥哟,离线,有人找我吗?
smileboy
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:超级版主 帖子:8672 积分:1734 威望:0 精华:0 注册:2006/8/11 10:52:00
  发帖心情 Post By:2017/11/23 14:59:00 [显示全部帖子]

一次性汇总,每天追加记录可以参考变通。

ClearGrid(GridName) And AppendFor("学费车费总帐","交费项目,交费日期,入账金额","明细分类,收费日期,入帐金额") And DelReptRows(GridName,"收费日期","明细分类") And DelFor(GridName,"收费日期", "=" ,"") And DelFor(GridName,"明细分类", "=" ,"") And EvalFor(GridName,"入帐金额","SumFor(""学费车费总帐"",""入账金额"",""交费日期"",""="",[收费日期],""交费项目"",""="",[明细分类])") And AppendFor("考级总帐","交费项目,交费日期,缴费金额","明细分类,收费日期,入帐金额") And DelReptRows(GridName,"收费日期","明细分类") And DelFor(GridName,"收费日期", "=" ,"") And DelFor(GridName,"明细分类", "=" ,"") And EvalFor(GridName,"入帐金额","SumFor(""考级总帐"",""缴费金额"",""交费日期"",""="",[收费日期],""交费项目"",""="",[明细分类])","入帐金额", "=" ,0) And AppendFor("演出费总帐","交费项目,交费日期,实收费用","明细分类,收费日期,入帐金额") And DelReptRows(GridName,"收费日期","明细分类") And DelFor(GridName,"收费日期", "=" ,"") And DelFor(GridName,"明细分类", "=" ,"") And EvalFor(GridName,"入帐金额","SumFor(""演出费总帐"",""实收费用"",""交费日期"",""="",[收费日期],""交费项目"",""="",[明细分类])","入帐金额", "=" ,0) And ReplaceFor(GridName,"摘要","收入","摘要", "=" ,"")

 回到顶部