以文本方式查看主题

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

--  作者:aza520
--  发布时间:2018/5/16 19:26:00
--  除指定列外,当前行不能编辑的代码问题
如下代码是当前行的"业主审核"为True时,当前行不能编辑。我想实现:当前行的"业主审核"为True时,该行除了“业主审批”列和“批复日期”列
能编辑外,其它列都不能编辑。请问老师,能实现吗?该怎么写
If e.Col.Name = "业主审核" Then
    If User.Group <> "建设办" And User.Name <> "开发者"  Then
        e.Cancel = True
    End If
ElseIf e.Row("业主审核") = True Then
    e.Cancel = True
End If

--  作者:有点甜
--  发布时间:2018/5/16 19:39:00
--  
If e.Col.Name = "业主审核" Then
    If User.Group <> "建设办" And User.Name <> "开发者"  Then
        e.Cancel = True
    End If
End If
If e.col.name <> "业主审批" AndAlso e.col.name <> "批复日期" Then
    If e.Row("业主审核") = True Then    
        e.Cancel = True
    End If
End If