i guess I haven't really provide too much detail about the problem that I'm encountering but thanks for the respond though.
I'm trying to do "any words search" so if a user enter "tooth brush" the code will search for keyword tooth and brush. However, My code below seems to give me only the result for the last keyword. Its really obvious why it does that since I'm using the for loop so the new recordset is overwriting the old recordset.
So my problem is that I want to merge both of the result together in one recordset.
btw, I use stored procedure for my query.
Sorry for the lack of clarity. I hope I give enough clarity now

. Thanks people
here is the source code
if (searcht="") then
If len(Request.QueryString("categoryid")) = 0 Then
Set rsCategories = Nothing
Set objUtil = Nothing
Response.Redirect("index.asp")
Else
strSQL = "selectProducts 0, " & Request.QueryString("categoryid")
End If
set rsProducts = objUtil.Execute_ADO_Query(strSQL)
if (rsProducts.RecordCount <> 0) then
rsProducts.MoveFirst
strLastManufacturerName = ""
do while (not(rsProducts.EOF))
if (not(isnull(rsProducts("metakeywords")))) then
strMetaKeywords = strMetaKeywords & "," & rsProducts("metakeywords")
end if
rsProducts.MoveNext
loop
rsProducts.MoveFirst
end if
else
'********************************************************************************************
' Make variation of Query here
'********************************************************************************************
searchterm = trim(searcht)
sterm = Split(searchterm)
for foo = 0 to Ubound(sterm)
strSQL = "selectSearchProducts '" & sterm(foo) & "', 0"
set rsProducts = objUtil.Execute_ADO_Query(strSQL)
if (rsProducts.RecordCount <> 0) then
rsProducts.MoveFirst
strLastManufacturerName = ""
do while (not(rsProducts.EOF))
if (not(isnull(rsProducts("metakeywords")))) then
strMetaKeywords = strMetaKeywords & "," & rsProducts("metakeywords")
end if
rsProducts.MoveNext
loop
rsProducts.MoveFirst
end if
Next
end if