以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  某个值写入汇总行  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=119880)

--  作者:chenjiu6202
--  发布时间:2018/6/3 10:05:00
--  某个值写入汇总行

Dim cmd As new SQLCommand
cmd.C
cmd.CommandText = "s elect 余额 from 出入库 where [_sortkey] = (s elect Max(_sortkey) from 出入库) "
Dim it As Integer = cmd.ExecuteScalar

怎样把返回的it值写入下面的总计汇总行的余额里面

 

g = New Subtotalgroup
g.Aggregate = AggregateEnum.Count
g.GroupOn = "*"
g.TotalOn = "余额"
g.Caption = "余额总计"
t.SubtotalGroups.Add(g)

 

 


--  作者:有点甜
--  发布时间:2018/6/3 10:19:00
--  

参考

 

http://www.foxtable.com/webhelp/scr/1964.htm

 

http://www.foxtable.com/webhelp/scr/2636.htm

 

http://www.foxtable.com/webhelp/scr/1911.htm

 


--  作者:chenjiu6202
--  发布时间:2018/6/4 21:55:00
--  
谢谢,甜老师!