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

前端 未结 5 508
暗喜
暗喜 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 04:05

    If temp_rst1.BOF and temp_rst1.EOF then the recordset is empty. This will always be true for an empty recordset, linked or local.

提交回复
热议问题