CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6

Thread: Seek Method

  1. #1
    Join Date
    Aug 2000
    Posts
    265

    Seek Method

    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?


  2. #2
    Join Date
    Aug 2000
    Location
    KY
    Posts
    766

    Re: Seek Method

    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.



  3. #3
    Join Date
    Aug 2000
    Posts
    265

    Re: Seek Method

    I indexed the field I'm seeking, and it still didn't work. Is access one of those databases that doesn't support seek?


  4. #4
    Join Date
    Aug 2000
    Location
    Namibia
    Posts
    139

    Re: Seek Method

    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




  5. #5
    Join Date
    Aug 2000
    Posts
    265

    Re: Seek Method

    What is value?


  6. #6
    Join Date
    Aug 2000
    Location
    Namibia
    Posts
    139

    Re: Seek Method

    Value is the field.value you are trying to match, whatever it is you're seeking.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured