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

Help please!

Status
Not open for further replies.

CJAI

MIS
Oct 21, 2003
224
US
i have already designed a from that creates a report on the click of a button. I want to be able to export this information directly to a word document from the report, and i would like this to occur in the back ground.

any help or suggestions on the vba code is highly appreciated

thanks much

J
 
Try this -

Instead of your DoCmd.OpenReport command, use:

DoCmd.OutputTo acOutputReport, strDocName, acFormatRTF, strFileName

where strDocName is the name of the report and strFileName is the name of the new RTF document.

Helen
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top