以文本方式查看主题 - Foxtable(狐表) (http://foxtable.com/bbs/index.asp) -- 专家坐堂 (http://foxtable.com/bbs/list.asp?boardid=2) ---- 窗口中的筛选影响表的筛选 (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=89316) |
||||
-- 作者:kaituozhe -- 发布时间:2016/8/19 8:14:00 -- 窗口中的筛选影响表的筛选 例子中在银行明细中有个窗口4,在窗口中的银行借贷方筛选时,相应的银行明细表(不是窗口中的表)也做了筛选,这样就影响了使用,怎么能够在窗口中筛选而不影响表(不是窗口中的表)呢
|
||||
-- 作者:Hyphen -- 发布时间:2016/8/19 9:31:00 -- 用Filter ,不能用DataTable.loadFilter Dim tbl As Table = Tables("窗口4_Table1") Select Case e.sender.name Case "comboBox1" Dim txt As String = e.Form.Controls("comboBox1").Text If txt = "" Then tbl.Filter = "" Else txt = "\'%" & txt & "%\'" tbl.Filter= "借贷方 Like " & txt End If End Select |