以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  判断  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=124780)

--  作者:nxqtxwz
--  发布时间:2018/9/13 16:08:00
--  判断
判断某记录的“A”列如果不等于列“B+C”的和就弹出提示错误,然后不做任何修改。代码怎么写呢?
[此贴子已经被作者于2018/9/13 16:12:10编辑过]

--  作者:有点甜
--  发布时间:2018/9/13 17:06:00
--  

datacolchanging事件?

 

select case e.datacol.name

    case "A"

        If e.datarow("A") <> e.datarow("B") + e.datarow("C") Then

            e.cancel = true

        End If

end select