Foxtable(狐表)用户栏目专家坐堂 → 两个表格对比,空的单元格要填上0,才能筛选出来


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

主题:两个表格对比,空的单元格要填上0,才能筛选出来

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


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

If e.DataCol.Name = "日期" Or e.DataCol.Name = "增" Or e.DataCol.Name = "减"
    Dim dr1 As DataRow
    Dim filter As String = "[日期] = '" & e.DataRow("日期") & "'"
    If e.DataRow("增") = Nothing Then
        filter &= " and [增] is null"
    Else
        filter &= " and [增] = " & e.DataRow("增")
    End If
    If e.DataRow("减") = Nothing Then
        filter &= " and [减] is null"
    Else
        filter &= " and [减] = " & e.DataRow("减")
    End If
    dr1 = DataTables("借贷表").Find(filter)
    If dr1 IsNot Nothing Then
        e.DataRow("表一") = True
    Else
        e.DataRow("表一") = False
    End If
End If

 回到顶部