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...