I am trying to connect from Access to an Oracle 7.4 database and would prefer not to use ODBC (I am too old to wait for the data to return). Does anyone know ADO code to establish a connection to query Oracle tables/views?
Dim objConn As ADODB.Connection
Dim rsTmp As ADODB.Recordset
Dim strConnect as String
strConnect="Provider=OraOLEDB.Oracle.1;Password=some_password;Persist Security Info=True;User ID=User1;Data Source=DBname"
Set rsTmp = CreateObject("ADODB.Recordset"
Set objConn = CreateObject("ADODB.Connection"
objConn.Open sConnect
With rsTmp
.CursorLocation = adUseClient
.Open "Select * from some_table", objConn, adCursorType, adLockType
Set .ActiveConnection = Nothing
End With
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.