CRecordset::GetODBCFieldCount
Visual Studio 2005
Retrieves the total number of fields in your recordset object.
short GetODBCFieldCount( ) const;
For more information about creating recordsets, see the article Recordset: Creating and Closing Recordsets (ODBC).
Reference
CRecordset ClassHierarchy Chart
CRecordset::GetFieldValue