以文本方式查看主题

-  Foxtable(狐表)  (http://www.foxtable.com/bbs/index.asp)
--  专家坐堂  (http://www.foxtable.com/bbs/list.asp?boardid=2)
----  not in  (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=154329)

--  作者:朱女士
--  发布时间:2020/9/11 10:12:00
--  not in

老师您好!

   我计算一个数据,就是将客户:"abb,魏德曼,博驰,博瑞”,以外的所有客户(比如:望变,巨龙等等)数据加在一起,归在“其他公司”数据统计。我的代码计算为0,您看我用的对吗?

  kgh3=Tables("ddpsb").Compute("Sum(净重)","[客户] Not In (\'abb\',\'魏德曼\',\'博瑞\',\'博驰\',\'望变\'" & "And substring([ddlb],1,1)=\'c \'" & " And 发货日期 Is Not null")


--  作者:有点蓝
--  发布时间:2020/9/11 10:31:00
--  
kgh3=Tables("ddpsb").Compute("Sum(净重)","[客户] Not In (\'abb\',\'魏德曼\',\'博瑞\',\'博驰\',\'望变\' ) And substring([ddlb],1,1)=\'c \'  And 发货日期 Is Not null")