Foxtable(狐表)用户栏目专家坐堂 → [求助]有没有老师能提供多个textbox控件可以textchanged即时筛选的例子?


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

主题:[求助]有没有老师能提供多个textbox控件可以textchanged即时筛选的例子?

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


加好友 发短信 一级勋章
等级:MVP荣誉狐 帖子:5154 积分:31434 威望:0 精华:8 注册:2008/9/8 12:27:00
  发帖心情 Post By:2010/9/5 0:06:00 [显示全部帖子]

增加一个按钮 或 在 leave 事件中(按回车后执行) :

 

Dim txb1 As WinForm.TextBox = Forms("窗口1").Controls("TextBox1")

'这里先筛选出你要得年份

Tables("窗口1_Table1").Sort = "日期"

Dim Filter As String = "[_identify] = " & Tables("窗口1_Table1")(Tables("窗口1_Table1").count -3,"_identify") & ""
Filter = Filter & " Or [_identify] = " & Tables("窗口1_Table1")(Tables("窗口1_Table1").count -2,"_identify") & ""
Filter = Filter & " Or [_identify] = " & Tables("窗口1_Table1")(Tables("窗口1_Table1").count -1,"_identify")
Tables("窗口1_Table1").Filter = Filter

 

[此贴子已经被作者于2010-9-5 0:32:24编辑过]

 回到顶部