B
brockc
I have code that worked without problem in Access 2003 that no longer
works in Access 2007.
Dim WordObj As Word.Application
Set WordObj = CreateObject("Word.Application")
WordObj.Documents.Add strMemoTemplate
... code to populate document
WordObj..ActiveDocument.SaveAs strFileName
Results in a -2147417851 error that the Server threw an exception.
I rebuilt my PC and reinstall Office 2007 and the code work that day,
but just a few days later the code no longer works (I did not try
between then), getting that same error. I have replicated this on
other PCs.
I can set breaks and add code to see the document is created
properly. It just fails when you try to save it.
Thanks
Christian
works in Access 2007.
Dim WordObj As Word.Application
Set WordObj = CreateObject("Word.Application")
WordObj.Documents.Add strMemoTemplate
... code to populate document
WordObj..ActiveDocument.SaveAs strFileName
Results in a -2147417851 error that the Server threw an exception.
I rebuilt my PC and reinstall Office 2007 and the code work that day,
but just a few days later the code no longer works (I did not try
between then), getting that same error. I have replicated this on
other PCs.
I can set breaks and add code to see the document is created
properly. It just fails when you try to save it.
Thanks
Christian