Disconnect JScript Recordset
In
VBScript you would do this by assigning the ActiveConnection property to Nothing. On a newly
created Recordset object, the ActiveConnection property also returns Nothing.
So in JScript, try this:
with(new ActiveXObject("adodb.recordset"))
{myRs.ActiveConnection = ActiveConnection}
If you feel that's a little overkill, just include a VBScript script block with
Function VBNothing()
set VBNothing = Nothing
End Function
In the JScript:
myRs.ActiveConnection = VBNothing();
--
Michael Harris
Microsoft.MVP.Scripting
--
Please do not email questions - post them to the newsgroup instead.
--
Quote:
> I can't get mine to disconnect. Does anyone have sample code?