Foxtable(狐表)用户栏目专家坐堂 → 筛选


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

主题:筛选

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


加好友 发短信 一级勋章 三级勋章 二级勋章
等级:超级版主 帖子:6318 积分:33963 威望:0 精华:10 注册:2008/8/31 20:56:00
  发帖心情 Post By:2008/10/13 21:46:00 [显示全部帖子]

 

Tables("A").ApplyFilter = False

Dim Filter As String

With e.Form.Controls("TextBox1")

    If .Value IsNot Nothing Then

        Filter = "b = '" & .Value & "'"

    End If

End With

With e.Form.Controls("TextBox2")

    If .Value IsNot Nothing Then

        If Filter > "" Then

            Filter = Filter & " And "

        End If

        Filter = Filter & "c = '" & .Value & "'"

    End If

End With

With e.Form.Controls("TextBox3")

    If .Value IsNot Nothing Then

        If Filter >"" Then

            Filter = Filter & " And "

        End If

        Filter = Filter & "d = '" & .Value & "'"

    End If

End With

 

If Filter > "" Then

    Tables("表A").Filter = Filter

End If

[此贴子已经被作者于2008-10-13 23:03:50编辑过]

 回到顶部