How do I test if a recordSet is empty? isNull?

前端 未结 5 490
暗喜
暗喜 2020-12-29 03:14

How can you test if a record set is empty?

        Dim temp_rst1 As Recordset
        Dim temp_rst2 As Recordset

        Set temp_rst1 = db.OpenRecordset(\"         


        
5条回答
  •  天涯浪人
    2020-12-29 03:55

    I would check the "End of File" flag:

    If temp_rst1.EOF Or temp_rst2.EOF Then MsgBox "null"
    

提交回复
热议问题