Private Sub Form_Load()
Const sFileLocation As String = "C:\MyRecordset.adtg"
Dim con As ADODB.Connection
Dim rs As ADODB.Recordset
Set con = New ADODB.Connection
con.CursorLocation = adUseServer
con.Provider = "SQLOLEDB"
con.ConnectionString = "Data Source=(local);Initial Catalog=Northwind;Integrated Security=SSPI;"
con.Open
Set rs = New ADODB.Recordset
rs.Open "SELECT * FROM Orders, Shippers", con, adOpenStatic, adLockReadOnly, adCmdText
Debug.Print "RecordCount before Save: " & rs.RecordCount
If Dir(sFileLocation, vbNormal) <> "" Then Kill sFileLocation
rs.Save sFileLocation, adPersistADTG
rs.Close
rs.Open sFileLocation, con, adOpenStatic, adLockReadOnly, adCmdFile
Debug.Print "RecordCount after Save: " & rs.RecordCount
rs.Close
con.Close
Set rs = Nothing
Set con = Nothing
End Sub