Hi everyone!
I've been going through all the previous threads but haven't found exactly what I need. The title says it all....I'm trying to write VBA code so with a simple click, I can create a mail merge document using a predefined template and pulling the information from a query in Access. Problem is I haven't found the code to use it with Access 2010 and Word 2010.
In my case, I want word to open "Template1.doc" as the template document, using information from query "List" in "Database.acdb", and after having the mail merge executed, create a new document called: report.doc.
I've seen that within years the VBA code has change and I'm not sure if I have to use a SetQuery function, Mailmerge function, etc. Can anyone help me?
I've been going through all the previous threads but haven't found exactly what I need. The title says it all....I'm trying to write VBA code so with a simple click, I can create a mail merge document using a predefined template and pulling the information from a query in Access. Problem is I haven't found the code to use it with Access 2010 and Word 2010.
In my case, I want word to open "Template1.doc" as the template document, using information from query "List" in "Database.acdb", and after having the mail merge executed, create a new document called: report.doc.
I've seen that within years the VBA code has change and I'm not sure if I have to use a SetQuery function, Mailmerge function, etc. Can anyone help me?