以文本方式查看主题

-  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=15314)

--  作者:球球
--  发布时间:2011/12/20 14:29:00
--  查找问题

With e.Form
    If e.sender.text <> "输入型号/土号查询" Then
Dim txt As String = e.Form.Controls("a").Text
If txt = "" Then
    Tables("表A").Filter = ""
 Else
    txt = "\'*" & txt & "*\'"
    Tables("表A").Filter = "型号 Like " & txt & " Or 土号 Like " & txt
   End If
End If
End With

 

 

这是一个查询代码  段代码只能对数字与文字进行查找,但是对时间、日期、C011****137中间夹有星号的都不能进行查找请问题这段代码要哪果更改才能对所有样式进行查找。


--  作者:blackzhu
--  发布时间:2011/12/20 15:08:00
--  

时间和日期不能参加模糊查询的.