以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  条件中的通配符  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=85510)

--  作者:zhangning
--  发布时间:2016/5/27 9:56:00
--  条件中的通配符
有多个列,如  转入_确认,转出_确认,
我想让只有班长才能编辑带有“确认“字样的列,
在事件代码中
If e.Col.Name = "*确认" Then \'
    If User.Group <> "班长"  Then
        e.Cancel = True
    End 
If

End
 If

这样写出现错误,不知哪里出现问题了?
请帮帮找找,谢谢!

--  作者:大红袍
--  发布时间:2016/5/27 10:35:00
--  
If e.Col.Name like "*_确认" Then 
    If User.Group <> "班长"  Then
        e.Cancel = True
    End If
End If