以文本方式查看主题 - Foxtable(狐表) (http://foxtable.com/bbs/index.asp) -- 专家坐堂 (http://foxtable.com/bbs/list.asp?boardid=2) ---- [求助]请问这是哪里错了 (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=137450) |
-- 作者:liumiao123 -- 发布时间:2019/7/6 10:32:00 -- [求助]请问这是哪里错了 请问老师这是哪里错了 查询错误·以前没有出错的·一直都用的好好的· TextChanged Dim txt As String = e.Form.Controls("TextBox1").Text Dim tbl As Table = Tables("派工单") If txt = "" Then tbl.Filter = "" Else txt = "\'%" & txt & "%\'" tbl.Filter = "姓名 Like " & txt & " Or 件号图号 Like " & txt & " Or 工序 Like " & txt & " Or 工价 Like " & txt & " Or 备注 Like " & txt & " Or 生产批号 Like " & txt & " Or 派工编码 Like " & txt End If [此贴子已经被作者于2019/7/6 10:32:52编辑过]
|
-- 作者:有点蓝 -- 发布时间:2019/7/6 11:01:00 -- 数值型列不能直接使用like,要转换为字符串,如: Or convert(工价,\'System.String\') Like " & txt & "
|