Foxtable(狐表)用户栏目专家坐堂 → 调用文本值作条件出错


  共有2193人关注过本帖平板打印复制链接

主题:调用文本值作条件出错

帅哥哟,离线,有人找我吗?
zhuxinhui
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:七尾狐 帖子:1775 积分:4695 威望:0 精华:0 注册:2017/11/8 17:37:00
调用文本值作条件出错  发帖心情 Post By:2020/2/21 17:44:00 [只看该作者]

Dim name  As  String = e.Form.Controls("TextBox1").Text
Dim name1  As  String = e.Form.Controls("TextBox29").Text
Dim name2  As  String = e.Form.Controls("TextBox30").Text
Dim name3  As  String = e.Form.Controls("TextBox31").Text
Dim name4  As  String = e.Form.Controls("TextBox32").Text

Dim txt  As  String = e.Form.Controls("TextBox14").Text
 Dim tbl As Table = Tables(name)
 If txt = "" Then
     tbl.Filter = ""
 Else
     txt = "'%" & txt & "%'"
     tbl.Filter = name1 Like  & txt &  Or name2 Like  & txt &  Or name3 Like  & txt &   Or name4 Like  & txt
 End If

 

这句要怎样改才不会出错

tbl.Filter = name1 Like  & txt &  Or name2 Like  & txt &  Or name3 Like  & txt &   Or name4 Like  & txt


 回到顶部