Results 1 to 3 of 3

Thread: ADO - Find A Specific Record

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Oct 1999
    Location
    NY, USA.
    Posts
    240

    Question

    Hi,
    I'm creating a database application that uses a MS Access Database, I'm using ADO to open the connection and Recordset. If I have a recordset already opened, What is the fastest or best best way to find a specific Record.


    Example...

    * If I wanted to search for a record the Matches these:

    FirstName = Omar
    AND
    LastName = Swan
    AND
    Sex = Male


    Thanks


    Omar
    [email protected]
    http://omar.caribwalk.com
    To God Be The Glory

    I see Tech People ...

  2. #2
    Guru Clunietp's Avatar
    Join Date
    Oct 1999
    Location
    USA
    Posts
    1,844
    You can't search on multiple criteria with an ADO recordset.

    You'll have to issue a new SQL statement to the database, or use your own validation logic (find, test other fields if they match, if not, find again, etc...)

  3. #3
    Guru Clunietp's Avatar
    Join Date
    Oct 1999
    Location
    USA
    Posts
    1,844
    Thanks Testicle!

    Use the Filter method

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