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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Pass a Report to the Word

Status
Not open for further replies.

Gti

Programmer
Jul 23, 2001
99
PT
what i need is when i hit a button the database report is automaticaly pass to a Word file *.DOC

How can i do it in VBA code?

Tkx

 
Add this code to the OnClick property of the button:

DoCmd.OutputTo acOutputReport, "reportname", acFormatRTF, "c:\My Documents\filename.rtf", False

where reportname = name of your report and
filename = the name of the file


Hope this helps...

J. Jones
jjones@cybrtyme.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top