ADO does support seek and find with the following notes:
SQL and Access:
You cannot use a forward-only recordset. The recordset you create must be scrollable. Even though you are only reading data and not changing it, the recordset needs to move forward and back when searching for records.
SQL:
When using the LIKE statement with the FIND statement, your search criteria must be a percent sign (e.g. rst.FIND "LName LIKE 'DAL%'")
Access:
When using the LIKE statement with the FIND statement, your search criteria must be an asterix (e.g. rst.FIND "LName LIKE 'DAL*'")
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement