Dim Filter As String = "" If e.Node.Text <> "全部" Then Dim Value() As String = e.Node.FullPath.Split("\") Select Case e.Node.Level Case 0 filter = "1=1" Case 1 Filter = "[类型] = '" & Value(1) & "'" End Select Else filter = "1=1" End If
Tables("main_table1").Fill("select * from {hkxx} where " & filter, "hk", True)