acces - Word

  • Thread starter Jean-Paul De WInter
  • Start date
J

Jean-Paul De WInter

Can I automatically copy data from an access query into a word document
instead of using a report??
Thanks
JP
 
M

Mark Phillipson

Hi,

You can output a report as a Rich text file (*rtf) which word can read.

For example:

DoCmd.OutputTo acOutputReport, "rptTest", acFormatRTF, "C:\Test.rtf",
True

Note the last argument if True will launch what every application is
registered to open with Rtf files. This is Word by default on my machine.


--
HTH

Mark Phillipson

Free Add-Ins at; http://mphillipson.users.btopenworld.com/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top