Code:
function funOne(sql)
Dim rsOne
Set rsOne = Server.CreateObject("ADODB.RecordSet")
rsOne.Open sql, oConn
Set funOne = rsOne
rsOne.Close
Set rsOne = Nothing
end function
Code:
function funTwo()
Dim rsTwo
Set rsTwo = funOne("SELECT .....")
funTwo = rsTwo(1)
rsTwo.Close
Set rsTwo = Nothing
end function
Can anyone see anything wrong with this? If someone has passed a RS object from on function to another I would be very pleased if you would share the code.
Thanks
dog