Vimal
05-30-2003, 12:00 AM
Hi ppl,
I have used the following query:
strSQL = "SELECT * from details where name LIKE '%" & request("namebox1") & "%' ORDER BY name"
What I wanted to do was to obtain all the names in my database that BEGIN with the particular letter typed in the searchbox.
However, what I am getting is all the names that contain that particular letter, no matter its position in the name.
Can anyone give me the exact code for such a query plz.
Thank you
Regards,
Vimal
I have used the following query:
strSQL = "SELECT * from details where name LIKE '%" & request("namebox1") & "%' ORDER BY name"
What I wanted to do was to obtain all the names in my database that BEGIN with the particular letter typed in the searchbox.
However, what I am getting is all the names that contain that particular letter, no matter its position in the name.
Can anyone give me the exact code for such a query plz.
Thank you
Regards,
Vimal