Foxtable(狐表)用户栏目专家坐堂 → 目录数查询报错,怎么解?


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

主题:目录数查询报错,怎么解?

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


加好友 发短信
等级:童狐 帖子:250 积分:2749 威望:0 精华:0 注册:2014/3/11 12:11:00
目录数查询报错,怎么解?  发帖心情 Post By:2019/6/27 18:43:00 [显示全部帖子]


图片点击可在新窗口打开查看此主题相关图片如下:截图.png
图片点击可在新窗口打开查看

Dim Value()As String
Dim Filter As String
    Value = e.Node.FullPath.Split("\")    
    S e l e c t Case e.Node.Level
        Case 0
            Filter ="level1Departments = '" & Value(0) & "'"
        Case 1
            Filter ="level1Departments = '" & Value(0) & "' And level2Departments = '" & Value(1) & "'"
        Case 2
            Filter ="level1Departments = '" & Value(0) & "' And level2Departments = '" & Value(1) & "' And level3Departments = '" & Value(2) & "'"
        Case 3
            Filter ="level1Departments = '" & Value(0) & "' And level2Departments = '" & Value(1) & "' And level3Departments = '" & Value(2) & "'And level4Departments = '" & Value(3) & "' "
        Case 4
            Filter ="level1Departments = '" & Value(0) & "' And level2Departments = '" & Value(1) & "' And level3Departments = '" & Value(2) & "'And level4Departments = '" & Value(3) & "'And level5Departments = '" & Value(4) & "'  "
        Case 5
            Filter ="level1Departments = '" & Value(0) & "' And level2Departments = '" & Value(1) & "' And level3Departments = '" & Value(2) & "'And level4Departments = '" & Value(3) & "' And level5Departments = '" & Value(4) & "' And level6Departments = '" & Value(5) & "'  "        
    End S e l e c t

    Tables("窗口1_table1").Fill("S E L E C T * FROM table where  isnull (level1Departments,'') = '"& Value(0)  &"' and isnull(level2Departments,'') = '"& Value(1) &"' and isnull(level3Departments,'') = '"& Value(2) &"' and  isnull(level4Departments,'') = '"& Value(3) &"' and isnull(level5Departments,'') = '"& Value(4) &"'","SALE",True)

 回到顶部