Guest_imported
New member
- Jan 1, 1970
- 0
Hi
I am creating an application that uses an access database. To access this database I am using the CDaoRecordset class. The problem is how to detect an empty recordset. I have tried to use the following code but it has not worked.
m_LogRec.Open();
if((m_LogRec.IsBOF() != 0) && (m_LogRec.IsEOF() != 0))
m_bIsEmpty = true;
else
m_bIsEmpty = false;
The detection needs to take place when the recordset is first opened and during operations on it. Does anyone have any ideas on how to detect the empty recordset?
Thank you
I am creating an application that uses an access database. To access this database I am using the CDaoRecordset class. The problem is how to detect an empty recordset. I have tried to use the following code but it has not worked.
m_LogRec.Open();
if((m_LogRec.IsBOF() != 0) && (m_LogRec.IsEOF() != 0))
m_bIsEmpty = true;
else
m_bIsEmpty = false;
The detection needs to take place when the recordset is first opened and during operations on it. Does anyone have any ideas on how to detect the empty recordset?
Thank you