以文本方式查看主题

-  Foxtable(狐表)  (http://www.foxtable.com/bbs/index.asp)
--  专家坐堂  (http://www.foxtable.com/bbs/list.asp?boardid=2)
----  表达式求助  (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=102768)

--  作者:baiheinet
--  发布时间:2017/6/25 15:53:00
--  表达式求助
t.filter = "(Status = \'上线\' or Status = \'启程\' ) and Company = \'项目部\' and \'" & user.IsRole("Department")&"\'"

错误了 请大家帮助一下
[此贴子已经被作者于2017/6/25 15:54:05编辑过]

--  作者:有点色
--  发布时间:2017/6/25 16:11:00
--  
t.filter = "(Status = \'上线\' or Status = \'启程\' ) and Company = \'项目部\' and Department = \'" & user.Role & "\'"
--  作者:baiheinet
--  发布时间:2017/6/25 16:18:00
--  
一个用户啊好几个角色 这样不行啊
--  作者:有点色
--  发布时间:2017/6/25 17:18:00
--  
t.filter = "(Status = \'上线\' or Status = \'启程\' ) and Company = \'项目部\' and Department in (\'" & user.Role.replace(",", "\',\'") & "\')"