以文本方式查看主题

-  Foxtable(狐表)  (http://www.foxtable.com/bbs/index.asp)
--  专家坐堂  (http://www.foxtable.com/bbs/list.asp?boardid=2)
----  [求助] 窗口表筛选  (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=96895)

--  作者:yupeng
--  发布时间:2017/3/2 0:44:00
--  [求助] 窗口表筛选

老师 您好

 

      If txt = "" Then
        tbl.Filter = "注销 = False"
    Else
        txt = "\'%" & txt & "%\'"
        tbl.Filter = "款号 Like " & txt & " Or 样板号 Like " & txt 
    End If

 

老师,这个模糊查找,我要在 "注销" 列 = False 以外查找,请问要怎样写代码?谢谢


--  作者:有点蓝
--  发布时间:2017/3/2 8:38:00
--  
If txt = "" Then
    tbl.Filter = "注销 = False"
Else
    txt = "\'%" & txt & "%\'"
    tbl.Filter = "注销 = true and (款号 Like " & txt & " Or 样板号 Like " & txt & ")"
End If