以文本方式查看主题

-  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=146720)

--  作者:rgbjwjb
--  发布时间:2020/3/1 1:00:00
--  子表在窗体中显示合计模式
我在窗体中添加了一个数据表控件,该数据表绑定到关联表中的子表,请问该数据表控件怎样设置才可以显示合计模式,
请指教,谢谢!!

--  作者:sloyy
--  发布时间:2020/3/1 3:06:00
--  
在窗体的AfterLoad 事件里设置合计模式
With Tables("主表.子表")
    .Cols("数量").GrandTotal = True \'指定要合计的列
    .Cols("金额").GrandTotal = True
    .GrandTotal = True \'显示合计模式
End With

--  作者:有点蓝
--  发布时间:2020/3/1 21:08:00
--  
看看:http://www.foxtable.com/webhelp/topics/1906.htm