以文本方式查看主题 - Foxtable(狐表) (http://foxtable.net/bbs/index.asp) -- 专家坐堂 (http://foxtable.net/bbs/list.asp?boardid=2) ---- [求助]运算符错误 (http://foxtable.net/bbs/dispbbs.asp?boardid=2&id=158496) |
-- 作者:冷泉 -- 发布时间:2020/11/21 18:42:00 -- [求助]运算符错误 Dim txt As String = e.Form.DropDownBox.Text Dim tbl As Table = Tables("下拉_Table1") txt = txt.Replace("*","[*]").Replace("%","[%]") If txt = "" Then tbl.Filter = "" Else txt = "\'*" & txt & "*\'" tbl.Filter = "商品名称 Like " & txt & " Or 商品编号 Like " & txt & " Or 商品类别 Like " & txt & " Or 规格 Like " & txt End If e.Form.DropDownBox.Select() 提示错误:Like 运算符中出错: 字符串模式“%20*2%”无效。 下拉框录入20*25这种就会提示这个错误,麻烦老师指点下,谢谢
|
-- 作者:有点蓝 -- 发布时间:2020/11/22 20:10:00 -- txt = "\'%" & txt & "%\'" |