--In the query analyzer execute this after specifying datatypes
CREATE PROC MyProc
@param1 <insertdatatype>,@param2 <insertdatatype>,@param3 <insertdatatype>
SELECT SupplierName, Location, ShortDescription
WHERE TimberSpecies LIKE '%' + @param1 + '%'
AND CategoryTable LIKE '%' + @param2 + '%'
AND Location LIKE '%' + @param3 + '%'
ORDER BY SupplierName
--FROM YOUR application CODE execute
SET rs = con.EXEC ("MyProc @param1 = " & Replace(rsSearchResult__MMColParam, "'", "''") & ",@param2 = " & Replace(rsSearchResult__MMColParam2, "'", "''") & ",@param3 = " & Replace(rsSearchResult__MMColParam3, "'", "''") & ")
If one brings so much courage to this world the world has to kill them or break them, so of course it kills them. The world breaks every one and afterward many are strong at the broken places. But those that will not break it kills. It kills the very good and the very gentle and the very brave impartially. If you are none of these you can be sure it will kill you too but there will be no special hurry. Earnest Hemingway, A Farewell To Arms.