Share via


Using a Record View (MFC Data Access)

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at Using a Record View (MFC Data Access).

This topic explains how you might commonly customize the default code for record views that the wizard writes for you. Typically, you want to constrain the record selection with a filter or parameters, perhaps sort the records, customize the SQL statement.

This information applies to both CRecordView (ODBC) and CDaoRecordView (DAO).

Using CRecordView or CDaoRecordView is much the same as using CFormView. The basic approach is to use the record view to display and perhaps update the records of a single recordset. Beyond that, you might want to use other recordsets as well, as discussed in Record Views: Filling a List Box from a Second Recordset.

See Also

Record Views (MFC Data Access)
ODBC Driver List