Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic


Call this member function to determine the index currently in use in an indexed table-type CDaoRecordset object.

CString GetCurrentIndex( );

A CString containing the name of the index currently in use with a table-type recordset. Returns an empty string if no index has been set.

This index is the basis for ordering records in a table-type recordset, and is used by the Seek member function to locate records.

A CDaoRecordset object can have more than one index but can use only one index at a time (although a CDaoTableDef object may have several indexes defined on it).

For related information, see the topic "Index Object" and the definition "current index" in DAO Help.

Header: afxdao.h

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft. All rights reserved.