|
-
Apr 16th, 2003, 10:29 AM
#1
Thread Starter
Addicted Member
Compare texts string in VB .NET
I need help on comparing a word or phrase enter by a user at run time to a MS Access database field format as memo. The Access field contains around a thousand characters of words and/or phrases and I need to compare if there is any match with any of the phrases or words in the memo field of the mdb database. The comparison doesn't have to be exactly match the case, space, order, or the full word or phrase. A great example of what I want to do is the search tool in Windows 2000 when you click Start/Search/For Files or Folders... But in this case I want to compare to a string variable that store the contents of the memo field from my MS Access mdb file.
If anyone has any idea, please give me a helping hand on this issue.
Many thanks in advance!
Chong
-
Apr 16th, 2003, 11:04 AM
#2
-
Apr 16th, 2003, 11:11 AM
#3
Thread Starter
Addicted Member
I want to compare a text entered by a user at run time and compare if what the user typed match any of the words or phrases in the database field that is formated as memo. I could compare during the SQL query or after the contents brought into a string variable, but the problem is I don't know what is the best way and how to do it.
Chong
-
Apr 16th, 2003, 02:00 PM
#4
Frenzied Member
It's better to do the comparison at the database level. The SQL will return a DataSet of all entries that match.
~Peter

-
Apr 16th, 2003, 02:09 PM
#5
Thread Starter
Addicted Member
Thanks! I'll give that a try first. If I have any problem, I'll sure let you know.
Chong
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
|