How to search for words out of order in an access search

darkmastergyz

Registered User.
Local time
Today, 02:57
Joined
May 7, 2006
Messages
85
So basically, what I have is a bunch of words in one memo field, for example:

dog cat cowboy tree flower

To search it, this is the code I have now.

' Check for LIKE Last Name
If Me.txtLastName > "" Then
varWhere = varWhere & "[LastName] LIKE """ & Me.txtLastName & "*" * " AND "
End If

The only problem is what I search for needs to be "in order", for example, if I search for dog, I'll get the table. But, if I seach for tree, I won't because tree was not place first. Can you please help me? Thanks a lot!
 
Something like this :
----> strwhere = Where [LastName] Like "*" & Me.txtLastName & "*"
 

Users who are viewing this thread

Back
Top Bottom