Results 1 to 8 of 8

Thread: Easiest way to search access database?

Threaded View

  1. #2
    PowerPoster
    Join Date
    Feb 2001
    Location
    Crossroads
    Posts
    3,046
    Something like the following (I didint test but should give you the idea):

    VB Code:
    1. dim rst as new ado.recordset
    2.  
    3. strSQL = "SELECT * FROM PoolPass WHERE " & strSearchField & "=" & strSearchString
    4.  
    5. cnn = "Provider=Microsoft.Jet.OLEDB.4.0;Persist Security Info=False;Data Source=c:\test.mdb;jet oledb:database"
    6.  
    7. rst.Open strSQL ,cnn, adOpenStatic, adLockOptimistic
    8. rst.Update
    9. ' record is now stored in rst
    10. rst.Close
    11. set rst = nothing
    Last edited by Muddy; Nov 5th, 2002 at 08:47 PM.

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