Hi, is there a way to loop through all open recordsets in a particular connection (For Each RS In ...) and close them? I know this can be done using Workspaces, but I don't use workspaces. An example of how I make a connection is below:
Dim cnDB as New ADODB.Connection
Dim rsDB As New ADODB.Recordset
cnDB.ConnectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=TestDB.mdb"
cnDB.Open
rsDB.Open sSQL$, cnDB, adOpenDynamic, adLockReadOnly
Tks
Damian
Dim cnDB as New ADODB.Connection
Dim rsDB As New ADODB.Recordset
cnDB.ConnectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=TestDB.mdb"
cnDB.Open
rsDB.Open sSQL$, cnDB, adOpenDynamic, adLockReadOnly
Tks
Damian