Results 1 to 2 of 2

Thread: ADO

  1. #1
    Guest

    Unhappy

    How do you code the cmdFind button to search for records in a database? Thanks for your help. Phil

  2. #2
    Lively Member dlm's Avatar
    Join Date
    Oct 2000
    Location
    Geraardsbergen(Belgium)
    Posts
    91
    Hi,


    code
    -----------------------------

    rs.Filter = "Field1 = '" & txtFind.Text & "'"

    If rs.BOF and rs.EOF then
    'Nothing found
    Else
    ' record(s) found
    rs.Movefirst
    end if

    -------------------------------
    If you can solve the problem, why worrying about it…
    If you can’t solve the problem, worrying won’t help…

    De la Motte Günther

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