Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

Use a connect string as in:

-----------------------------------------Dim conn As ADODB.Connection


' Open a connection using Oracle ODBC.
Set conn = New ADODB.Connection
conn.ConnectionString = _
"Driver={Microsoft ODBC for Oracle};" & _
"UID=user_name;PWD=user_passsword"
conn.Open
Open the table as in:
-------------------------------Dim rs As ADODB.Recordset
' Open the table.
Set rs = New ADODB.Recordset
rs.Open "TableName", conn, adOpenDynamic, _
adLockOptimistic, adCmdTable

You might also like