 |
mique17 Level: Graduate
 Registered: 24-05-2006 Posts: 12
|
SQL
im trying to do search in my database using VB, so i try to manipulate my SQL in my code.,but the the result is not what i wanted 2., i want to do searching only by giving a phrase or a word but it will return all datas contaning that keyword or pharse., here's a sample of my code:
Adodc1.RecordSource = "SELECT * FROM myTable WHERE Name = ' " & txtPhrase.Text & " ' "
txtPhrase is the textbox where i used to put my keyword or phrase.,
i want to try putting some wildcards in it but i dont know where to put it.,
for example:
i want to find names begging with "m" in my database
how is it? can you please help me.,
____________________________
The things you don't like in me are the things that made me true, for those things are natural in me, so its better if you hate for who i am than you'll like me for who i pretend to be.,^_^
|
|
24-05-2006 at 02:31 AM |
|
|
|
|
 |
 |