// Check state of Recordset long nState; hr = m_iADOCERS->get_State(&nState); ASSERT(SUCCEEDED(hr)); if(nState == adStateClosed) return false;