Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CDaoRecordset - Handling Empty Recordsets

Status
Not open for further replies.

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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top