以文本方式查看主题 - Foxtable(狐表) (http://foxtable.net/bbs/index.asp) -- 专家坐堂 (http://foxtable.net/bbs/list.asp?boardid=2) ---- 更新后的foxtable 不能查询带有* 的字符串怎么办? (http://foxtable.net/bbs/dispbbs.asp?boardid=2&id=61126) |
-- 作者:yacity -- 发布时间:2014/12/7 16:57:00 -- 更新后的foxtable 不能查询带有* 的字符串怎么办? 更新后的foxtable 不能查询带有* 的字符串怎么办? 我们的产品规格大部分带有*,查询带有*的字符串是经常使用的一个功能。 代码如下 Dim Filter As String With e.Form.Controls("textbox1") If .Value IsNot Nothing Then Filter = "chanpinid = \'" & .Value & "\'" End If End With With e.Form.Controls("textbox2") If .Value IsNot Nothing Then If Filter > "" Then Filter = Filter & " And " End If Filter = Filter & "chanpinname like \'%" & .Value & "%\'" End If End With With e.Form.Controls("textbox3") If .Value IsNot Nothing Then If Filter >"" Then Filter = Filter & " And " End If Filter = Filter & "guige like \'%" & .Value & "%\'" End If End With With e.Form.Controls("textbox4") If .Value IsNot Nothing Then If Filter >"" Then Filter = Filter & " And " End If Filter = Filter & "danwei like \'%" & .Value & "%\'" End If End With With e.Form.Controls("textbox5") If .Value IsNot Nothing Then If Filter >"" Then Filter = Filter & " And " End If Filter = Filter & "chuhuodate >= #" & .Value & "#" End If End With With e.Form.Controls("textbox6") If .Value IsNot Nothing Then If Filter >"" Then Filter = Filter & " And " End If Filter = Filter & "chuhuodate <= #" & .Value & "#" End If End With If Filter > "" Then Tables("chuhuo").Filter = Filter End If 如何解决这个问题?
|
-- 作者:有点甜 -- 发布时间:2014/12/7 17:17:00 -- Filter = Filter & "guige like \'%" & .Value.Replace("*", "[*]") & "%\'" |
-- 作者:yacity -- 发布时间:2014/12/7 17:48:00 -- 谢谢甜! 系统右键菜单->文本筛选 -> 包含 查询的时候也会出现相同的错误提示 这个可以解决吗? 怎么改?
|
-- 作者:有点甜 -- 发布时间:2014/12/7 18:00:00 -- 那你就要修改系统菜单的快捷菜单的实现方式了
先导入菜单模板,然后修改系统菜单的代码
http://www.foxtable.com/help/topics/1079.htm
|