CdbRecordset::Requery Method

Updates the data in a Recordset object by re-executing the query on which the object is based.

Syntax

VOIDRequery(CdbQueryDef *pq = NULL);

Parameters

Type Example Description
CdbQueryDef * pq = NULL Optional. Pointer to a QueryDef that represents the Name property value of a QueryDef object (Microsoft Jet workspaces only).

Usage

#include <afxole.h>
#include <dbdao.h>

CdbRecordset recordset;
...
recordset.Edit();         // Make some changes
...
recordset.Update;         // Save changes
recordset.Requery();     // Refresh the recordset