Results 1 to 2 of 2

Thread: FIND METHOD USING ADO CODE

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Apr 2000
    Posts
    19
    can somebody help I've using the method find(ADO), at the moment users have to type in the correct string, if possible I want users to just type in the first few letters for example Joe Bloggs Enterprise, if users type in joe it will find find, below is my current code if anyone can help let me know.


    <CODE>
    frmCompany.Show
    frmCompany.rsmaster.MoveFirst
    lastposition = Trim(InputBox("Enter Company for search."))
    criteria = "COMP_NAME = '" & lastposition & "'"
    frmCompany.rsmaster.Find criteria

    Regards
    Daryl

  2. #2
    Addicted Member
    Join Date
    Oct 1999
    Posts
    253
    Use: criteria = "COMP_NAME Like '" & lastposition & "%'"

    Good Luck!!!

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