CDaoRecordset::m_strSort

Remarks

Contains a string containing the ORDERBY clause of an SQL statement without the reserved words ORDERBY. You can sort on dynaset- and snapshot-type recordset objects.

You cannot sort table-type recordset objects. To determine the sort order of a table-type recordset, call SetCurrentIndex.

The use of m_strSort has no effect when opening a recordset using a CDaoQueryDef pointer.

For more information about selecting records, see the article in Visual C++ Programmer's Guide. For related information, see the topic "Sort Property" in DAO Help.

CDaoRecordset OverviewClass MembersHierarchy Chart

See Also   CDaoRecordset::m_strFilter