WB786
MIS
- Mar 14, 2002
- 610
I have everything working BUT my problem is that if I am searching for a combo of words and it doesn't work.
Here is the coding:
Set oRS = Server.CreateObject("ADODB.Recordset")
strSQL = "SELECT * FROM tblGroups WHERE [Active]=true and [GroupName] like '%" & Request.Form("SearchValue") & "%' ORDER BY [GroupNumber]"
oRS.CursorType = 2
oRS.LockType = 3
oRs.Open strSQL, oConn
Do while not oRs.EOF
I can search on say Air and it pulls up all items that start with the word AIR. But lets says I type in: Carpet Cleaner - it doesn't - because in GroupName it is really listed as "Carpet Hot Water Cleaner".
I want it to be able to search on all keywords instead.
Thanks,
WB
Here is the coding:
Set oRS = Server.CreateObject("ADODB.Recordset")
strSQL = "SELECT * FROM tblGroups WHERE [Active]=true and [GroupName] like '%" & Request.Form("SearchValue") & "%' ORDER BY [GroupNumber]"
oRS.CursorType = 2
oRS.LockType = 3
oRs.Open strSQL, oConn
Do while not oRs.EOF
I can search on say Air and it pulls up all items that start with the word AIR. But lets says I type in: Carpet Cleaner - it doesn't - because in GroupName it is really listed as "Carpet Hot Water Cleaner".
I want it to be able to search on all keywords instead.
Thanks,
WB