You can use ADO or DAO to do this.
You can only dim the objects as object and not as ADODB.recordset
Dim adoConn as object
Dim adoRS as object
Dim strConString as string
Dim strSQL as string
strConString ="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\MyDB.mdb;"
Set adoConn = createobject("ADODB.CONNECTION"
adoConn.open strConString
strSQL = "Select * from MyTable"
adoRS.open strSQL, adoconn
do
adoRS.addnew
adoRS.fields("acctnum"

.value = Sess0.Screen.getstring(1,1,11)
Sess0.Screen.Sendkeys("<Enter>"

Sess0.Screen.WaitHostQuiet(100)
loop until Sess0.Screen.getstring(1,1,11) = "End of File"
adoRS.close
adoConn.close
Set adoRS = nothing
Set adoConn = nothing
'You should write error handling to set the ado objects to nothing
'I did not test this code but it is very close to a working model