Hi - I'm getting a very strange File not found message.
I have set up my Access FE in a way that users can use an Access BE database or a MySQL database. To create quotes/invoices I pass data to Word - this works perfectly using the filepath stored in the MySQL database. With the Access database Word gives me a File not found error message at Run MacroName:=
Without running the macro it will open without any problems:
Again - the code works perfectly when strFileName is stored in MySQL. Am I missing something obvious here? Thanks for help!
I have set up my Access FE in a way that users can use an Access BE database or a MySQL database. To create quotes/invoices I pass data to Word - this works perfectly using the filepath stored in the MySQL database. With the Access database Word gives me a File not found error message at Run MacroName:=
Without running the macro it will open without any problems:
Code:
Set wordApp = New Word.Application
With wordApp
.Documents.Open filename:=strFileName
.Application.Run MacroName:="fill_with_data"
.Visible = True
.Activate
End With