以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  如何判断table中是否为空  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=90708)

--  作者:clchen
--  发布时间:2016/9/20 11:31:00
--  如何判断table中是否为空
要如何判断table中没有一条数据


--  作者:aduydgd
--  发布时间:2016/9/20 11:50:00
--  

If Tables("TABLE").Current IsNot Nothing Then

        msgbox("空!",vbOKOnly,"提示")

        Return

End If


--  作者:狐狸爸爸
--  发布时间:2016/9/20 12:00:00
--  

If Tables("TABLE").Rows.Count = 0 Then

        msgbox("空!",vbOKOnly,"提示")

        Return

End If