|
-
Feb 4th, 2002, 08:58 AM
#1
Thread Starter
Hyperactive Member
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
-
Feb 4th, 2002, 09:04 AM
#2
Hyperactive Member
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
-
Feb 4th, 2002, 11:09 AM
#3
Thread Starter
Hyperactive Member
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
-
Feb 4th, 2002, 12:52 PM
#4
Fanatic Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|