Results 1 to 4 of 4

Thread: DataEnvironment1.rsZoeken....little question about .Find

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2001
    Posts
    259

    DataEnvironment1.rsZoeken....little question about .Find

    I am using this code for searching : DataEnvironment1.rsZoeken.Find "NM = '" & Zoeken.Text & " ' "

    That works really good when i search on exact the same value. I was wondering if there is any methode to search on a value that is not exact the same search criteria. For example i have to search "vbforums" but i find it when i search "vbf".

    Please can somone reply ASAP because i need it ASAP.
    Thank you,

    Matrixxx

  2. #2
    Hyperactive Member
    Join Date
    Sep 2001
    Location
    St. Albans, Herts, UK
    Posts
    259
    Code:
    DataEnvironment1.rsZoeken.Find "NM LIKE '*" & Zoeken.Text & " *' "
    Graham, www.gab2001uk.com VBExplorer Forum Moderator VBExplorer
    www.gab2001uk.com For comparing and contrasting DAO with ADO
    Code for Creating, Copying, Compacting, Replicating, Synchronising Access 97/2000 databases plus showing Schemas and using .Seek

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2001
    Posts
    259
    Thank you for the code. It works when the value is in the first word but when it is on the second word he can't find it. Is there maybee any thing i can do about?

    Thanks,
    Matrixxx

  4. #4
    Fanatic Member
    Join Date
    Aug 2001
    Location
    Connecticut
    Posts
    855
    Replace * with % since you're using ADO.
    VB 6.0, Access, Sql server, Asp

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