[This is preliminary documentation and subject to change.]
The OpenIndexed method opens a recordset and indexes it.
void OpenIndexed(
int iKeyID,
int nOpenType,
LPCTSTR lpszSQL,
int nOptions
);
This parameter can be one of the following values.
Value | Meaning |
---|---|
dbOpenSnapshot | Open the recordset as a snapshot, in other words, create a fixed copy of the records in the table. |
dbOpenDynaset | Open the recordset as a dynaset, a set of pointers to the records in a table. This is the default. |
This method does not return a value.
This method is functionally equivalent to calling the OpenRecordset method and then calling SetIndex, where the SetIndex method is the DAO wrapper for the Index Automation property for the DAO Recordset.
Windows NT: Unsupported.
Windows: Requires Windows 98.
Windows CE: Unsupported.
Header: Declared in dbsets.h.
Import Library: Use dbsets.lib or dbsetsSt.lib.
Unicode: Yes.