progex
asked on
Sorting DAO Tables in VB
Hi...
I've got an application developen in VB using DAO to open Access Database file. My problem is how to sort the record sets when thy are opened as a Table. Indexes can not be used in Table mode!
I've got an application developen in VB using DAO to open Access Database file. My problem is how to sort the record sets when thy are opened as a Table. Indexes can not be used in Table mode!
ASKER
well, i'm using the opendatabase function of the database object to open the recordset and set it to the record set object as follows:
set data_rs = data_db.opendatabase("data base name", "table name, dbOpenTable)
no sorting option in here!!!
:(
set data_rs = data_db.opendatabase("data
no sorting option in here!!!
:(
ASKER
isn't there a method with the recordset object to reorder the table??
What about the sort methord of the recordset object???
What about the sort methord of the recordset object???
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
My recommandation: answered by Dhaest, because there was no reaction after my comment, so I guess that it the asker was satisfied about my comment.
Otherwise you can give it a order by clause when you open your recordset:
rs.open "select * from yourTable order by YourField"