Does anyone know howto make a connection to an oracle database to extract records into a word doc through VB.
I just need help with the connection. This one (below) works for MS Access but I need to connect to oracle hopefully without a DSN but can use it if I have too.
Thanks in advance
Dash
With ActiveDocument.MailMerge
.MainDocumentType = wdFormLetters
constr = "DSN=MS Access Databases;" _
& "DBQ=C:\Access\NorthWind.mdb;" _
& "FIL=RedISAM;"
.OpenDataSource Name:="C:\MSOffice\Access\NorthWind.mdb", _
Connection:=constr, SQLStatement:="SELECT * FROM Customers"
End With
I just need help with the connection. This one (below) works for MS Access but I need to connect to oracle hopefully without a DSN but can use it if I have too.
Thanks in advance
Dash
With ActiveDocument.MailMerge
.MainDocumentType = wdFormLetters
constr = "DSN=MS Access Databases;" _
& "DBQ=C:\Access\NorthWind.mdb;" _
& "FIL=RedISAM;"
.OpenDataSource Name:="C:\MSOffice\Access\NorthWind.mdb", _
Connection:=constr, SQLStatement:="SELECT * FROM Customers"
End With