Home |
About me |
EXCEL
VB Programming (XL97-2003) |
ACCESS Programming |
EXCEL VB.Net Programming |
EXCEL Spreadsheet Functions |
Material Management | Guestbook
|
ADO Sort PropertyThe Sort property sets or returns a string value that provides
the names of the fields in the Recordset that you wish sorted.
Each name must be separated by a delimiter comma and the entire string
must be enclosed within a pair of double quotes. If the field name
contains blank spaces, you need to enclose it within a pair of square
brackets. Note: If you set this property to an empty string (objRecordset.Sort="") it will reset the records to their original order. When you are using a client-side cursor, the ADO Cursor Engine will automatically create a temporary index for the sort rather than physically rearranging the data. This makes the sort more efficient. You can also create your own temporary index by setting the Optimize property of the Properties Collection of the Field object to True. Syntax
Example
|