以文本方式查看主题 - Foxtable(狐表) (http://www.foxtable.com/bbs/index.asp) -- 专家坐堂 (http://www.foxtable.com/bbs/list.asp?boardid=2) ---- 统计问题 (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=97007) |
-- 作者:cglsg5076 -- 发布时间:2017/3/3 20:51:00 -- 统计问题 老师好,我用下面的代码做合计统计,可是只有下面绿色的给出了合计的结果,其他各列均没有合计结果,请问为什么?谢谢!(我这个表有双层表头,不知是否影响合计统计?) Tables("ProductionListing").Cols("T2D_PrimeProduction").GrandTotal = True Tables("ProductionListing").Cols("T2D_SailLineProduction").GrandTotal = True Tables("ProductionListing").Cols("T2D_ReshootProduction").GrandTotal = True Tables("ProductionListing").Cols("T2D_UndershootProduction").GrandTotal = True Tables("ProductionListing").Cols("T3D_PrimeProduction").GrandTotal = True Tables("ProductionListing").Cols("T3D_SailLineProduction").GrandTotal = True Tables("ProductionListing").Cols("T3D_InfillProduction").GrandTotal = True Tables("ProductionListing").Cols("T3D_ReshootProduction").GrandTotal = True Tables("ProductionListing").Cols("T3D_UndershootProduction").GrandTotal = True Tables("ProductionListing").GrandTotal = True
|
-- 作者:有点蓝 -- 发布时间:2017/3/3 21:47:00 -- 只有数值列可以合计,字符列不能合计 |
-- 作者:cglsg5076 -- 发布时间:2017/3/3 22:11:00 -- 谢谢老师指导。 现在我想把合计的结果放到其他表的相应列里,比如 我想把表ProductionListing里的T2D_PrimeProduction列的合计结果放到表ProjectListAll的T2D_PrimeProduction列里,我该如何写代码。帮助里看不到这些信息。
|
-- 作者:有点蓝 -- 发布时间:2017/3/3 22:20:00 -- 默认的合计没有办法取值和赋值, |
-- 作者:cglsg5076 -- 发布时间:2017/3/4 7:06:00 -- 老师好,我想自己写代码统计各列,让后放到表ProjectListAll的T2D_PrimeProduction列里,我该如何更改下面的代码。谢谢! Dim sum As Single sum=0.0 For Each cl As Col In Tables("ProductionListing").Cols sum=sum+cl("T2D_PrimeProduction") Next |
-- 作者:有点蓝 -- 发布时间:2017/3/4 9:32:00 -- 参考:http://www.foxtable.com/webhelp/scr/0393.htm
|
-- 作者:cglsg5076 -- 发布时间:2017/3/4 9:44:00 -- 知道如何写了,调试可以了。谢谢老师 |
-- 作者:cglsg5076 -- 发布时间:2017/3/4 10:42:00 -- 老师好,foxtable可以设置成不同的界面风格,我如何在自己的程序里通过代码也调用这些不同的界面。谢谢! |
-- 作者:cglsg5076 -- 发布时间:2017/3/4 11:31:00 -- 老师,我知道怎么做了。是否还有其他的风格可以调用,可以调用的差别并不大。 |
-- 作者:有点蓝 -- 发布时间:2017/3/4 12:08:00 -- 风格就这几种。没有其他的了 |