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

Need Code to Export a report in RTF format 2

Status
Not open for further replies.

Dylan

MIS
Aug 27, 1998
109
US
I have an existing report that I want to automate creating an external rtf file. can this be done using an event procedure behind a command button.

Thanks for any help

Tom



Tom Moran
Lansing, Michigan
 
DoCmd.OutputTo acOutputReport,"ReportNameHere",acFormatRTF,"FileToSaveTo"

I am what I am based on the decisions I have made.

DoubleD [bigcheeks]
 
Sure can, the VBA you need for your command button takes the form:
Code:
DoCmd.OutputTo acOutputReport, "YourReportNameHere", acFormatRTF, "C:\temp\demo.rtf"
Search Access VBA help for OutputTo Method for more explanation and some interesting optional parameters.

Hope this helps.


[pc2]
 
mp9,
Good solution. hehehe

I am what I am based on the decisions I have made.

DoubleD [bigcheeks]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top