Question : One Button in MS Access form to export Multiple Queries to Word document.

Hi,

I am creating a database which will contain different types of data and I would like to export those data to word format. I created separate queries and ms access reports for each data type.

What I would like to know if it is possible to export all queries or ms access reports to word document wilt just a click of a button uisng a macro and not having to export each query or report one after the other.

Answer : One Button in MS Access form to export Multiple Queries to Word document.

Yes, but please be aware that the documents may not appear in Word exactly the way they appear in Access.

Here is the basic syntax:

DoCmd.OutputTo acOutputReport, "YourReport", acFormatRTF, "C:\YourFolder\SomeFile.rtf"

If you want an exact translation, you can try this:
http://www.lebans.com/ReportUtilities.htm
(but it may be a bit trickier to implement)

;-)

JeffCoachman
Random Solutions  
 
programming4us programming4us