Hi,
I'm a first-time ASP user. I've created a search form which accepts a value belonging to a field called Surname which brings up a table of numbers. Is there any way to include the field FirstName in the SQL string so that a user must type in both surname and first name before getting the result? I've heard that InStrings are the answer but I can find no info on them.
My code used is;
sql = "SELECT * FROM Internal WHERE Surname LIKE '"
sql = sql & request.form ("txtSurname"
& "%'"
Please help.
I'm a first-time ASP user. I've created a search form which accepts a value belonging to a field called Surname which brings up a table of numbers. Is there any way to include the field FirstName in the SQL string so that a user must type in both surname and first name before getting the result? I've heard that InStrings are the answer but I can find no info on them.
My code used is;
sql = "SELECT * FROM Internal WHERE Surname LIKE '"
sql = sql & request.form ("txtSurname"
Please help.