954,557 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

how to use like parameter in access connected to vb.net

hi. i'm doing a search option in my system where if your searching for a entry even if you didnt typed the whole word, all of the entry that contains the letters that you have typed will appear, well i really cant explain it but it goes like this if i have entries: reserve,reservoir,restaurant,jaded,mend,feed in my database and the searcher typed "res" all the word containing res will appear. i know it has something to do with the like parameter but i just cant do the code right. please help me..

iefilec
Newbie Poster
5 posts since Sep 2011
Reputation Points: 10
Solved Threads: 0
 

Hi, please check here how to use Like condition. Its all well explained.
bye

Mitja Bonca
Nearly a Posting Maven
2,485 posts since May 2009
Reputation Points: 641
Solved Threads: 474
 

hi. thanks for the link. i have read the explanation but my code still wont work. i have a access database connected to vb.net.i have this:

dim str as string = "boo"

SELECT * FROM table WHERE title LIKE '%" & str & "%'

but still, it wont list all the entries having "boo"

i hope you could help me. thanks

iefilec
Newbie Poster
5 posts since Sep 2011
Reputation Points: 10
Solved Threads: 0
 

hi.thank God i have figured out why it isn't working. HAHA! thanks Mitja Bonca that link was useful :)

iefilec
Newbie Poster
5 posts since Sep 2011
Reputation Points: 10
Solved Threads: 0
 

You are welcome.
Iam glad you worked it out.

Mitja Bonca
Nearly a Posting Maven
2,485 posts since May 2009
Reputation Points: 641
Solved Threads: 474
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: