又报错:
此主题相关图片如下:捕获.jpg

tree4的nodemouseclick代码:
Dim Filter As String
Dim dr As DataRow = e.Node.DataRow '获取生成此节点的行
Select Case e.Node.Level
Case 0
Filter = "[企业名称] = '" & dr("企业名称") & "' and [部门设置] is null and [岗位设置] is null and [第四层机构设置] is null and [第五层机构设置] is null and [第六层机构设置] is null"
Forms("安全信息化系统主窗口").Controls("TabControl5").SelectedIndex = 0
Case 1
Filter = "[企业名称] = '" & dr("企业名称") & "' and [部门设置] = '" & dr("部门设置") & "' and [岗位设置] is null and [第四层机构设置] is null and [第五层机构设置] is null and [第六层机构设置] is null"
Forms("安全信息化系统主窗口").Controls("TabControl5").SelectedIndex = 1
Case 2
Filter = "[企业名称] = '" & dr("企业名称") & "' and [部门设置] = '" & dr("部门设置") & "' and [岗位设置] = '" & dr("岗位设置") & "' and [第四层机构设置] is null and [第五层机构设置] is null and [第六层机构设置] is null"
Forms("安全信息化系统主窗口").Controls("TabControl5").SelectedIndex = 2
Case 3
Filter = "[企业名称] = '" & dr("企业名称") & "' and [部门设置] = '" & dr("部门设置") & "' and [岗位设置] = '" & dr("岗位设置") & "' and [第四层机构设置] = '" & dr("第四层机构设置") & "' And [第五层机构设置] Is null And [第六层机构设置] Is null"
Forms("安全信息化系统主窗口").Controls("TabControl5").SelectedIndex = 3
Case 4
Filter = "[企业名称] = '" & dr("企业名称") & "' and [部门设置] = '" & dr("部门设置") & "' and [岗位设置] = '" & dr("岗位设置") & "' and [第四层机构设置] = '" & dr("第四层机构设置") & "' and [第五层机构设置] = '" & dr("第五层机构设置") & "' and [第六层机构设置] is null"
Forms("安全信息化系统主窗口").Controls("TabControl5").SelectedIndex = 4
Case 5
Filter = "[企业名称] = '" & dr("企业名称") & "' and [部门设置] = '" & dr("部门设置") & "' and [岗位设置] = '" & dr("岗位设置") & "' and [第四层机构设置] = '" & dr("第四层机构设置") & "' and [第五层机构设置] = '" & dr("第五层机构设置") & "' and [第六层机构设置] = '" & dr("第六层机构设置") & "' "
Forms("安全信息化系统主窗口").Controls("TabControl5").SelectedIndex = 5
End Select
Tables("年度安全目标").Filter = Filter
请帮忙看一下是怎么回事?