Foxtable(狐表)用户栏目专家坐堂 → [求助]查询语句


  共有1165人关注过本帖树形打印复制链接

主题:[求助]查询语句

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


加好友 发短信
等级:版主 帖子:85326 积分:427815 威望:0 精华:5 注册:2012/10/18 22:13:00
  发帖心情 Post By:2018/12/7 16:08:00 [显示全部帖子]

代码改成比如

 

Dim filter as string = "1=1"

Dim n1 as string = 1

If n1 <> Nothing then

    filter &= " and (a='" & n1 & "' or b='" & n1 & "' or c='" & n1 & "')"

End If

Dim n2 as string = 2

If n2 <> Nothing then

    filter &= " and (a='" & n2 & "' or b='" & n2 & "' or c='" & n2 & "')"

End If

msgbox(filter)


 回到顶部