以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  [求助]如果A列为空,那么A列等于B列,  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=126345)

--  作者:1669607010
--  发布时间:2018/10/19 9:00:00
--  [求助]如果A列为空,那么A列等于B列,
[求助]表里有两个数据列,如果A列为空,那么A列等于B列的代码应该怎么写啊?哪位老师给指点一下
--  作者:有点甜
--  发布时间:2018/10/19 9:07:00
--  

datacolchanged事件

 

If e.datacol.name = "A" andalso e.newvalue = nothing then

    e.datarow("A") = e.datarow("B")

end If