Click to open or copy the MFCROWS project files.
The MFCRows sample demonstrates how to use COleDBRecordView to scroll through a table in a database. It also demonstrates how to use multiple accessors so you can update a Microsoft Access table that contains an AutoNumber field to be retrieved.
To run the sample, you must first ensure that you have an ODBC data source name "OLE_DB_Nwind_Jet" set up that points to the Microsoft Access Northwind sample database.
This sample demonstrates the following keywords:
CDataSource::Open, CSession, CCommand::Open, CAccessor, CRowset::Open, COleDBRecordView, DDX_Text, CDBPropSet::AddProperty