以文本方式查看主题

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

--  作者:有点色
--  发布时间:2017/3/9 16:59:00
--  

代码写到 beforeClose 事件

 

Dim nms() As String = {"开标日期","项目名称","业务性质","评标方式","开标地址"}   \'不允许为空的列名
Dim dl As Row = Tables("代理招标信息").Current
For Each nm As String  In nms
    If dl.IsNull(nm) Then
        Messagebox.Show(nm & "必须输入内容")

        e.Cancel = True
        Return
    End If
Next