以文本方式查看主题

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

--  作者:newsun2k
--  发布时间:2014/10/6 13:43:00
--  输入校验
表中如何设定一个列是必须输入的?


--  作者:有点甜
--  发布时间:2014/10/6 14:12:00
--  

 在保存之前判断 BeforeSaveDataRow

 

 代码

 

If e.DataRow.IsNull("第一列") Then

    msgbox("不能为空")

    e.Cancel = true

End If