为了使用RecordCount属性,我们需要使用设置好游标(静态/客户): 在m_pSet->Open()前加上: m_pSet->CursorType = adOpenStatic; m_pSet->CursorLocation = adUseClient;