Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

word as reporting tool for access

Status
Not open for further replies.

joyw

Programmer
Apr 25, 2008
1
Hi,

I have a requirement to generate reports in word which will pull data from ms access 2007 database. i would need to know how can i acheive this and if it is possible.

any directions or sample code will be appreciated, also would need to know if there are any third party tools that can do this ?

Thanks for the help
Joy
 
You can use OLE Automation to start an instance of Word and manipulate it's loaded document. I don't have any code handy, but the first step is to reference the Word library.


 
You should be more specific in what you want to accomplish. Maybe you just need to do a mail merge. We can't tell. Here's some readings you might find helpful:
How do I... Dynamically fill Microsoft Word fields using Access data?


How do I... fill Word form fields with Access data?

How do I... Fill a Word table with Access data?
 
Forgot to ask - Why do you have to have your reports in Word? Since you'll be using data stored in Access, just create the reports in Access. You can always export to Word like this:
DoCmd.OutputTo acreport, "report name", "RichTextFormat(*.rtf)", "report path", False,
 
Fneily is correct create a report with all you required fields then just export it into word using the format given by fneily
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top