Rss & SiteMap

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

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

标题:如何只自动统计最后10行的数据?

1楼
乌拉古城 发表于:2011/12/14 10:04:00
请问一下,在不断增加行数据的情况下,如何只自动统计最后10行的数据
2楼
狐狸爸爸 发表于:2011/12/14 10:22:00

统计订单表最后10行:

 

Dim dt As DataTable = DataTables("订单")
Dim idx As Integer = math.max(0,dt.DataRows.count - 10)
Dim g As New GroupTableBuilder("统计表1", dt)
g.Filter = "[_Identify] >= " & dt.DataRows(idx)("_identify")
g.Groups.AddDef("日期", "月")
g.Totals.AddDef("数量")
g.Build()
MainTable = Tables("统计表1")

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

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

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