Solved

DoCmd.OutputTo acOutputReport

Posted on 2014-03-01
3
487 Views
Last Modified: 2014-03-02
Can someone please how I use docmd.outputTo to either produce an RTF or a query that can be used with a word template?

I guess I need an explanation of the parameters, because nothing I try works.

Thanks in advance.
0
Comment
Question by:CRB1609
3 Comments
 
LVL 35

Expert Comment

by:PatHartman
ID: 39898147
What do you mean - "nothing works".   Specifically, what did you try?  What happened?  What exactly do you want to happen?  RTF exports don't support graphic elements but you can run merges from Access directly in which case you wouldn't have a problem with parameters.
0
 
LVL 16

Accepted Solution

by:
Sheils earned 500 total points
ID: 39898161
If you want to generate word document from data in your access database and a word template, I suggest that you use Albert Kallal's codes. I have used them in many applications and they are very easy to implement. Download sample database with codes from the following link:-

http://www.kallal.ca/msaccess/WordMerge2008.zip

This link is on the following page
http://www.kallal.ca/msaccess/msaccess.html
0
 

Author Closing Comment

by:CRB1609
ID: 39898282
Thanks very much.  Most useful.
0

Featured Post

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In the previous article, Using a Critera Form to Filter Records (http://www.experts-exchange.com/A_6069.html), the form was basically a data container storing user input, which queries and other database objects could read. The form had to remain op…
I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question