Foxtable(狐表)用户栏目专家坐堂 → 以下是自己做的筛选窗口,如何实现满足多条件筛选


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

主题:以下是自己做的筛选窗口,如何实现满足多条件筛选

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


加好友 发短信
等级:狐神 帖子:4752 积分:34568 威望:0 精华:0 注册:2008/8/31 22:44:00
  发帖心情 Post By:2012/6/27 21:50:00 [显示全部帖子]

Dim s As String
Dim s1 As String() = {e.Form.Controls("bm").Value,e.Form.Controls("xb").Value,e.Form.Controls("ht").Value,e.Form.Controls("zc").Value}
Dim s2 As String() = {"第二列","第四列","第五列","第六列"}
    For i As Integer = 0 To s1.Length-1
        If s1(i) Is Nothing
            Continue For
        End If
        s = s & " And " & s2(i) & " In ('" & s1(i).Replace(",","','") & "')"
    Next
If s > ""
    Tables("表A").Filter = s.TrimStart(" ","A","n","d"," ")
End If


 回到顶部