Question : Automation MS Access and MS Word

Hi,
I need to make a ms word document template contains some fields, like
Title, Subject, date, site, and remarks
I have a ms access table contains these columns :
Title, Subject, date, site, and remarks
These fields are embedded to a form in a ms access,
This form contains a button
I want this button to open the ms word document template and fill in it's fields with the data comes from the ms access form
So I need two things pls.
1: the ms word template
2: the appropriate code fill in this ms word document.
Thanks in advance

Answer : Automation MS Access and MS Word

I think your easiest solution to this would be to set it up as a mail merge.  There is really simple wizard in Word 2003 that will help you set this up.

Press ctrl + F1 to open the task pane - click on the list option at the top and select mail merge.  This simple 6 step wizard will then guide you through what to do.

microsoft website how to guide can be found here: http://office.microsoft.com/en-us/help/HA010349201033.aspx

Also you can do this just within MS Access using the reports function.  Here you can create a report with complete control over formatting options etc such as you would find in word.  A how to guide on this can be found: http://www.brainbell.com/tutorials/ms-office/Access_2003/TOC_Working_With_Reports.html
Random Solutions  
 
programming4us programming4us