scottr
Jul 10th, 2000, 01:49 PM
Hi i am opening up serveral recordsets on my page and I use these to populate drop down boxes. Now I want to close all the recordsets: I put them in the following location near the end of the page. I also close them out using this function:
function closeRS(rs)
RS.Close
Set RS = Nothing
end function
</table>
</body>
<%
'close it out
closeRS(rst1)
closeRS(rst2)
closeRS(rst3)
closeRS(rst4)
closeRS(rst5)
closeRS(dbConn)%>
</html>
Does anyone see anything wrong with this method?
function closeRS(rs)
RS.Close
Set RS = Nothing
end function
</table>
</body>
<%
'close it out
closeRS(rst1)
closeRS(rst2)
closeRS(rst3)
closeRS(rst4)
closeRS(rst5)
closeRS(dbConn)%>
</html>
Does anyone see anything wrong with this method?