|
-
Mar 6th, 2003, 05:44 PM
#4
By default the statement
Set Recordset = Connection.Execute
returns a Forward-Only cursor, which cannot be sorted.
Use the Recordset.Open method instead.
rs.Open "Select * from Table1", cnn, adOpenStatic, adLockReadOnly
You will then be able to sort the records.
FYI: The Connection.Execute statement creates a new recordset. The rs.CursorLocation = adUseClient statement before the Execute statement is useless.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|