Foxtable(狐表)用户栏目专家坐堂 → [求助]查询表分组统计


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

主题:[求助]查询表分组统计

帅哥哟,离线,有人找我吗?
有点甜
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:版主 帖子:85326 积分:427815 威望:0 精华:5 注册:2012/10/18 22:13:00
  发帖心情 Post By:2017/8/16 11:15:00 [显示全部帖子]

 同样的问题,你问过啊

 

Dim t As Table = Tables("查询表")
Dim cs As String = "员工,日期"
t.sort = cs
Dim pdr As Row
For Each dr As Row In t.Rows
    Dim flag As Boolean = False
    If pdr IsNot Nothing Then
        For Each c As String In cs.split(",")
            If pdr(c) <> dr(c) Then
                flag = True
                Exit For
            End If
        Next
       
        If flag Then
           
        Else
            output.show(dr("员工") & dr("上班时间"))
            dr("上班时间") = Nothing
            dr("加班时间") = Nothing
        End If
    End If
    pdr = dr
   
Next

 

http://www.foxtable.com/bbs/dispbbs.asp?BoardID=2&ID=104277&skin=0

 


 回到顶部