CrimsonDiva
Programmer
Hello,
I'm trying to provide a database search using pattern matching. For instance, a user wants to search for all occurences of the word "access" in my database. I'm having trouble writing the SQL portion of this code. This is what I have now:
SrcTxt = Request.Form("SearchTxt"
sql = "SELECT Synopsis, Desc, Answer " & _
"FROM FAQ " & _
"WHERE Synopsis LIKE '" &SrcTxt& "%' " & _
"ORDER BY Synopsis; "
Where "SearchTxt" is the name of the text field in the search. When I run the above code (with the ASP file), it produces no results even though I know that it should produce at least 1 record. PLEASE HELP!!!
[sig][/sig]
I'm trying to provide a database search using pattern matching. For instance, a user wants to search for all occurences of the word "access" in my database. I'm having trouble writing the SQL portion of this code. This is what I have now:
SrcTxt = Request.Form("SearchTxt"
sql = "SELECT Synopsis, Desc, Answer " & _
"FROM FAQ " & _
"WHERE Synopsis LIKE '" &SrcTxt& "%' " & _
"ORDER BY Synopsis; "
Where "SearchTxt" is the name of the text field in the search. When I run the above code (with the ASP file), it produces no results even though I know that it should produce at least 1 record. PLEASE HELP!!!
[sig][/sig]