Click to See Complete Forum and Search --> : Seek Method
comart
June 14th, 2001, 08:51 AM
I want to use the Seek method (rather than the find method) with an Access database. I get an error message stating that the provider is not capable of performing the operation. Doesn't access support the seek method? If not, why?
dfwade
June 14th, 2001, 09:06 AM
Seek only works on an indexed field and you must set the index field before issueing a seek. Caution: Seek is fast but is not terribly portable to other databases.
comart
June 14th, 2001, 09:12 AM
I indexed the field I'm seeking, and it still didn't work. Is access one of those databases that doesn't support seek?
phunkydude
June 14th, 2001, 11:47 AM
you need to make sure that you're using the correct index from your code
Dim rs as ADODB.Recordset
'recordset already instantiated and populated
rs.Index = "IndexName"
rs.seek Value
comart
June 14th, 2001, 12:56 PM
What is value?
phunkydude
June 14th, 2001, 01:04 PM
Value is the field.value you are trying to match, whatever it is you're seeking.
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.