Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sorting a Recordset
Message
 
À
14/10/2001 19:47:45
Information générale
Forum:
Visual Basic
Catégorie:
Bases de données DAO/RDO/ODBC/ADO
Divers
Thread ID:
00568359
Message ID:
00568366
Vues:
16
This message has been marked as the solution to the initial question of the thread.
>I am using.......
>cnSMDR1.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source= C:\Tracit\SMDR1.mdb"
>and
>rsCompany.Open "Company", cnSMDR1, adOpenKeyset, adLockOptimistic
>to open my recordset. When I use the command rsCompany.Sort = "CompanyName", it returns the error, "Current provider does not support the nessecary interfaces for sorting or filtering". Any suggestions on how I can sort this recordset before I use it?

You need to open a client sided cursor:
set rsCompany = new adodb.recordset
rsCompany.cursorlocation=aduseclient
rsCompany.Open "Company", cnSMDR1, adOpenstatic, adLockOptimistic
rsCompany.Sort = "CompanyName"
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform