以文本方式查看主题

-  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=120039)

--  作者:nxqtxwz
--  发布时间:2018/6/6 8:30:00
--  权限
如果表ABC的某一行的“性别”列是“女”,则只有A用户能够编辑;如果是“男”则只有B用户才能编辑,代码怎么写呢?
--  作者:有点甜
--  发布时间:2018/6/6 8:44:00
--  

startEdit 事件

 

If e.row("性别") = "女" AndAlso user.name <> "A" Then

    e.Cancel = true

ElseIf e.row("性别") = "男" AndAlso user.name <> "B" Then

    e.Cancel = True

End If