Exporting to Word - how to make a template

  • Thread starter Thread starter Andrej
  • Start date Start date
A

Andrej

Hello. I am a beginner in Access and I have a problem, which I can't solve.

I would like to export results from query to MS Word (automaticaly, by using
Command Button).

The way I tried to make a word template was: I started with Merge It with MS
Word, then created a new document, where I put the linking fields. After
that I saved this document as a template.

When I ran macro the only result was correct records but only in table view.

Could somebody tell me how to make such Word template, or show me an address
on internet where I can read it?


Is it correct using macro that includes action OutputTo (rtf format).


Thanks in advance, Andrej
 
Sure, I have an working example.

To merge your query in my system, all you do is make a button with the
following code


MergeAllWord ("yourQueryName")

My code will do the rest.

Try downloading my sample. Then follow the instructions ON HOW to use the
example in YOUR application. You should have no problems.

Check out:

http://www.attcanada.net/~kallal.msn/msaccess/msaccess.html

I even have step by step instructions on how to place a button on your form!
It can't get any easier!
 
Mr. Albert D. Kallal

Thank you for example. And for other good ideas I saw on your page.

Best regards, Andrej from Slovenia
 
Back
Top