Foxtable(狐表)用户栏目专家坐堂 → [求助]


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

主题:[求助]

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


加好友 发短信
等级:管理员 帖子:47497 积分:251403 威望:0 精华:91 注册:2008/6/17 17:14:00
  发帖心情 Post By:2015/10/23 22:57:00 [显示全部帖子]

是的。

太多的话,可以参考下面的简化:

 

Dim filter As String = ""
Dim nms1() As String = {"部门名称","专业","学历")
Dim nms1() As String = {"TextBox1","TextBox2","TextBox3")
For i As Integer = 0 To nms1.Length - 1
    Dim txt As String = e.Form.Controls("TextBox1").text
    If txt > "" Then
        If Filter > "" Then
            Filter = Filter & " and "
        End If
        Filter = Filter & nms1(i) & " Like '%" & txt & "%'"
    End If
Next
If Filter > "" Then
    Tables("机构").Filter = Filter
End If


 回到顶部