Foxtable(狐表)用户栏目专家坐堂 → 通过审核逻辑列的加载,在甜老师写的代码基础上加写的麻烦老师看看


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

主题:通过审核逻辑列的加载,在甜老师写的代码基础上加写的麻烦老师看看

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


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

Select Case e.Node.Level

    Case 0

        Forms("主界面").close

        If e.Node.Text = "全市" Then

            DataTables("表A").LoadFilter = "第14列 = true"

     

        Else

            DataTables("表A").LoadFilter = "区域 = '" & e.Node.Text & "' and 第14列 = true"

        End If

    Case 1

        Forms("主界面").close

        Dim ary() As String = e.Node.FullPath.Split("\")

        If ary(0) = "全市" Then

            DataTables("表A").LoadFilter = "第2列 = '" & ary(1) & "'"

        Else

            DataTables("表A").LoadFilter = "区域 = '" & ary(0) & "' and 第2列 = '" & ary(1) & "'"' and 第14列 = true"

        End If

End Select

DataTables("表A").Load


 回到顶部