According to the help files
**
If you open a Recordset object containing no records, the BOF and EOF properties are set to True, and the Recordset object's RecordCount property setting is 0. When you open a Recordset object that contains at least one record, the first record is the current record and the BOF and EOF properties are False
**
However when I use the RecordSetClone method this is no the case.
I have the following code.
When I clone a recordset with 2 records EOF remains TRUE. Hence the test for an emptry recordset doesn't work for RecordsetClone. The RecordCount property works however.
Which makes me wonder is the EOF a good test for an empty recordset? I've been using it all along?
**
If you open a Recordset object containing no records, the BOF and EOF properties are set to True, and the Recordset object's RecordCount property setting is 0. When you open a Recordset object that contains at least one record, the first record is the current record and the BOF and EOF properties are False
**
However when I use the RecordSetClone method this is no the case.
I have the following code.
Code:
Dim Solv As DAO.Recordset
Set Solv = Me.Bill_of_Lading_Sub.Form.RecordsetClone
Debug.Print Solv.RecordCount
Debug.Print Solv.EOF
If Solv.EOF Then
Exit Sub
End If
When I clone a recordset with 2 records EOF remains TRUE. Hence the test for an emptry recordset doesn't work for RecordsetClone. The RecordCount property works however.
Which makes me wonder is the EOF a good test for an empty recordset? I've been using it all along?