以文本方式查看主题

-  Foxtable(狐表)  (http://www.foxtable.com/bbs/index.asp)
--  专家坐堂  (http://www.foxtable.com/bbs/list.asp?boardid=2)
----  【求助】or 和andalso 的关系表达式  (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=30530)

--  作者:晕了快扶我
--  发布时间:2013/3/29 15:53:00
--  【求助】or 和andalso 的关系表达式

 Tables("客户订单产品选择_产品列表").DataTable.Fill("select * from {客户订单产品选择} where 客户产品资料_品名 Like \'%" & cpcx & "%\' or 客户产品资料_规格 Like \'%" & cpcx & "%\' or 客户产品资料_CPN Like \'%" & cpcx & "%\' or 我司产品资料_品名 Like \'%" & cpcx & "%\' or 我司产品资料_规格 Like \'%" & cpcx & "%\' or 我司产品资料_品牌 Like \'%" & cpcx & "%\' or 我司产品资料_OPN Like \'%" & cpcx & "%\' AndAlso 客户名称= \'" & Tables("客户订单主表").Current("客户名称") & "\' ,"ERP",True)

这样子的条件表达要怎么做呢?前几个是or,andalso后的条件是一定要满足的


--  作者:FoxMan
--  发布时间:2013/3/29 15:57:00
--  
Select 中只有 And 沒AndAlso !表達式支持()的
--  作者:晕了快扶我
--  发布时间:2013/3/29 16:06:00
--  
以下是引用FoxMan在2013-3-29 15:57:00的发言:
Select 中只有 And 沒AndAlso !表達式支持()的
TKS!问题解决!