One way is to use ADO to make connections to the different databases...
eg.
Dim cnnOne As New ADODB.Connection
Dim cnnTwo As New ADODB.Connection
Dim rstOne As New ADODB.Recordset
Dim rstTwo As New ADODB.Recordset
'set connection to Test.mdb
cnnOne.Open "Driver={Microsoft Access Driver (*.mdb)};" & _
"Dbq=Z:\Sample Access DB\Test.mdb;" & _
"Uid=admin;" & _
"Pwd="
'set connection to db2.mdb
cnnTw

pen "Driver={Microsoft Access Driver (*.mdb)};" & _
"Dbq=Z:\Sample Access DB\db2.mdb;" & _
"Uid=admin;" & _
"Pwd="
'open recordset on connection one (tblName)
rstOne.Open "tblName", cnnOne, adOpenForwardOnly, adLockOptimistic, adCmdTable
'open recordset on connection two (tblTest)
rstTw

pen "tblTest", cnnTwo, adOpenDynamic, adLockOptimistic, adCmdTable
'DO PROCESSING OF RECORDSETS
'close connections/recordsets
rstOne.Close
rstTwo.Close
cnnOne.Close
cnnTwo.Close
Set rstOne = Nothing
Set rstTwo = Nothing
Set cnnOne = Nothing
Set cnnTwo = Nothing
You will need a referenct to Microsoft ActiveX Data Objects.
There are two ways to write error-free programs; only the third one works.