I am trying to connect to a data source via a DSN connection, when the OpenDataSource command executes, the script crashes. Here is the code:
Sub GenerateDocument(id)
Dim oApp, oDoc, oSel
Set oApp = CreateObject("Word.Application")
Set oDoc = oApp.Documents.Add
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.