• From a quick look it looks like this statement may be casuing you some problems

    set rs = conntemp.execute("SELECT SQLStmt, DateEntered FROM SavedSearch WHERE ID=" & SavedSearch)

    As you SQLstmnt already has the FROM Clause it will error when you try and combine it with another FROM clause.

    Are you to provide the SQL statement that is sent to the sever? (with actual values and not variables in it)