Hi Guy's,
I am trying to open a mail merge file with the following code:
Dim oApp As Object
Set oApp = CreateObject("Word.Application")
oApp.Visible = True
'Open the document.
oApp.Documents.Open ("H:\UserName\Review Letter.doc")
the word document opens fine but it does not prompt me to run the SQL command, as it does when I open it maually, so there is no datasource for the letters.
Does anyone know why this is not working?
Thanks in advance.
I am trying to open a mail merge file with the following code:
Dim oApp As Object
Set oApp = CreateObject("Word.Application")
oApp.Visible = True
'Open the document.
oApp.Documents.Open ("H:\UserName\Review Letter.doc")
the word document opens fine but it does not prompt me to run the SQL command, as it does when I open it maually, so there is no datasource for the letters.
Does anyone know why this is not working?
Thanks in advance.