以文本方式查看主题 - Foxtable(狐表) (http://foxtable.net/bbs/index.asp) -- 专家坐堂 (http://foxtable.net/bbs/list.asp?boardid=2) ---- 筛选问题 (http://foxtable.net/bbs/dispbbs.asp?boardid=2&id=118283) |
-- 作者:swagger -- 发布时间:2018/4/28 1:05:00 -- 筛选问题 Dim tbl As Table = Tables("客户查询_table1") Dim Filter As String With e.Form.Controls("textbox15") If .Value IsNot Nothing Then If Filter >"" Then Filter = Filter & " And " End If Filter = "([客户名称] like \'%" & .Value & "%\' Or [客户id] like \'%" & .Value & "%\')" & “性别 = ‘男’” If tbl Is Nothing Then msgbox("没有数据") Else tbl.DataTable.loadFilter = Filter tbl.DataTable.load End If End If End With 为啥会出现”性别附近有语法错误“?
|
-- 作者:有点甜 -- 发布时间:2018/4/28 9:27:00 --
Filter = Filter & "([客户名称] like \'%" & .Value & "%\' Or [客户id] like \'%" & .Value & "%\') and 性别 = \'男\'"
|