Rss & SiteMap
Foxtable(狐表) http://www.foxtable.com
PrepareEdit事件
If e.Col.Name = "确定"
If e.Row("处理结果") = "打款" Or e.Row("处理结果") = "退款" Then
If User.Group <> "经理" Then
e.Cancel = True
End If
End If
End If
就是说经理能操作 确定 这列的前提是:处理结果 这列的值必须是 退款 或 打款,这段代码写上去,处理结果 是啥都能操作 确定 列,确定列是逻辑列
将or改成AndAlso试试
门锁了,猜一下:
If e.Col.Name = "确定"
If User.Group = "经理" Then
If e.Row("处理结果") <> "打款" AndAlso e.Row("处理结果") <> "退款" Then
e.Cancel = True
End If
Else
e.Cancel = True
End If
End If