What database are you using?
If its Access, you create a Link Table and use that, just like it belongs to the ONE Database.
If you are using Oracle, then I don't know. Our Oracle system allows us to reference any Database instance...becuase its all under Oracle I would assume.
If you are wanting to mix Access and Oracle in the same Query, then there are ways to 'Fool' the system to let you do this using COM+...
...but if you don't even know ADO yet, I wouldn't even consider it.
Code:Dim Conn as ADODB.Connection Dim rst as ADODB.Recordset Dim SQLScript as String Set Conn = New ADODB.Connection With Conn .ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=UseYourDatabaseLocation;Persist Security Info=False" .Open End With SQLScript = UseYourSQL Set rst = New ADODB.Recordset With rst .ActiveConnection = Conn .CusrorType = adOpenDynamic .CusorLocation = adUseClient .LockType = adLockOptimistic .Source = SQLScript .Open End With




Reply With Quote