以文本方式查看主题

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

--  作者:yeshuping5045
--  发布时间:2017/1/11 17:53:00
--  【求助】字符型单元格内容一致判断
父表(结算总表)第1列(制单员,字符型),第2列(审核人,字符型),先需要审核人不能和制单员一致,否则取消审核人的录入,在PrepareEdit事件中录入代码,请教如何编写

If e.Col.Name = "审核人" Then 
    If (判断表达式不清楚) Then
        e.Cancel = True
    End If
End If


--  作者:有点色
--  发布时间:2017/1/11 17:57:00
--  
If e.Col.Name = "审核人" Then 
    If e.row("制单员") = user.Name Then
        e.Cancel = True
    End If
End If