Foxtable(狐表)用户栏目专家坐堂 → [求助统计代码怎么写


  共有9642人关注过本帖树形打印复制链接

主题:[求助统计代码怎么写

帅哥哟,离线,有人找我吗?
紙上不談兵
  11楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:幼狐 帖子:113 积分:731 威望:0 精华:1 注册:2011/8/16 14:13:00
  发帖心情 Post By:2011/8/30 16:19:00 [只看该作者]

楼主的要求真低啊.

按钮代码:

Dim g As New CrossTableBuilder("统计表1", DataTables("明细表"))
g.HGroups.AddDef("时间")
g.VGroups.AddDef("姓名")
g.Totals.AddDef("金额","金额")
g.Decimals = 2
g.Build()

Dim t As Table = Tables("统计表1")
With t.DataTable
    For Each dc As DataCol In .DataCols
        If dc.name<> "时间" Then
            .DataCols(dc.Name).Caption = dc.Caption & "总金额"
        End If
    Next
    .BuildHeader()   
End With
MainTable =t

 回到顶部
总数 11 上一页 1 2