Rss & SiteMap

Foxtable(狐表) http://www.foxtable.com

新一代数据库软件,完美融合Access、Foxpro、Excel、vb.net之优势,人人都能掌握的快速软件开发工具!
共16 条记录, 每页显示 10 条, 页签: [1] [2]
[浏览完整版]

标题:汇总代码

1楼
blackzhu 发表于:2009/8/24 20:05:00

 

Dim dst As WinForm.DataList = e.Form.Controls("DataList1")
dst.GrandTotal(AggregateEnum.Sum,
"总计", "数量", "金额"
)



在datalist中的这个汇总的代码,在TABLE控件中怎么写?
2楼
czy 发表于:2009/8/24 20:13:00
老六还没教过,过几天看帮助吧。
3楼
yangming 发表于:2009/8/24 20:30:00

Dim t As Table = Tables("窗口3_Table1")
Dim g As SubtotalGroup
t.SubtotalGroups.Clear()
t.GroupAboveData = False
t.TreeVisible = False

g = New SubtotalGroup
g.Aggregate = AggregateEnum.Sum
g.GroupOn = "*"
g.TotalOn = "数量,金额"
g.Caption = "总计"
t.SubtotalGroups.Add(g)

t.Subtotal()

4楼
yangming 发表于:2009/8/24 20:30:00
用汇总模式吧
5楼
yangming 发表于:2009/8/24 20:35:00

还可以将表的汇总模式全用来
Dim t As Table = Tables("窗口3_Table1")
Dim g As SubtotalGroup
t.SubtotalGroups.Clear()
t.GroupAboveData = False
t.TreeVisible = False

g = New SubtotalGroup
g.Aggregate = AggregateEnum.Sum
g.GroupOn = "产品"
g.TotalOn = "数量,金额"
g.Caption = "{0} 小计"
t.SubtotalGroups.Add(g)

g = New SubtotalGroup
g.Aggregate = AggregateEnum.Sum
g.GroupOn = "*"
g.TotalOn = "数量,金额"
g.Caption = "总计"
t.SubtotalGroups.Add(g)

t.Subtotal()

6楼
blackzhu 发表于:2009/8/25 7:24:00
以下是引用yangming在2009-8-24 20:35:00的发言:

还可以将表的汇总模式全用来
Dim t As Table = Tables("窗口3_Table1")
Dim g As SubtotalGroup
t.SubtotalGroups.Clear()
t.GroupAboveData = False
t.TreeVisible = False

g = New SubtotalGroup
g.Aggregate = AggregateEnum.Sum
g.GroupOn = "产品"
g.TotalOn = "数量,金额"
g.Caption = "{0} 小计"
t.SubtotalGroups.Add(g)

g = New SubtotalGroup
g.Aggregate = AggregateEnum.Sum
g.GroupOn = "*"
g.TotalOn = "数量,金额"
g.Caption = "总计"
t.SubtotalGroups.Add(g)

t.Subtotal()

 退出汇总的代码呢?以前我用的是统计表的模式

7楼
blackzhu 发表于:2009/8/25 8:15:00

退出代码已会.

8楼
blackzhu 发表于:2009/8/25 8:22:00
with e.Form
    if e.sender.text <> "请输入关键字" then
        Dim dst As Table = Tables("某表")
        Dim txb1 As WinForm.TextBox = .Controls("TextBox1")
        Tables("窗口中的Table").Filter = "[IO] Like '*" & txb1.text & "*' or [GO NO] Like '*" & txb1.text & "*'or [客户合同号] Like '*" & txb1.text & "*'or [英文款号] Like '*" & txb1.text & "*'or [商标] Like '*" & txb1.text & "*'or [客户名称] Like '*" & txb1.text & "*'or [款号] Like '*" & txb1.text & "*'or [布款号] Like '*" & txb1.text & "*'or [季节号] Like '*" & txb1.text & "*'or [CAPS] Like '*" & txb1.text & "*'"
      
      
    end if
end with




这个查找代码是狐爸给我的,但是老是找不到"窗口中的TABLE控件",已经是设定为副本了.
9楼
狐狸爸爸 发表于:2009/8/25 9:13:00
那就是名称搞错了!
10楼
blackzhu 发表于:2009/8/25 9:27:00
以下是引用狐狸爸爸在2009-8-25 9:13:00的发言:
那就是名称搞错了!

 没错啊,我用("目录树_table1")和("table1")都试了都不行.

还有我用Tables("窗口1_Table1").DataSource = DataTables("订单")这个代码切换表,隐藏列会在副本显示?有没有办法解决.

共16 条记录, 每页显示 10 条, 页签: [1] [2]

Copyright © 2000 - 2018 foxtable.com Tel: 4000-810-820 粤ICP备11091905号

Powered By Dvbbs Version 8.3.0
Processed in .03906 s, 2 queries.