CRecordset::IsOpen
Determines if the recordset is already open.
BOOL IsOpen( ) const;
Return Value
Nonzero if the recordset object's Open or Requery member function has previously been called and the recordset has not been closed; otherwise 0.
Requirements
Header: afxdb.h