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

Easiest way to print a report to file using VBA help?

Status
Not open for further replies.

newbee2

Technical User
Apr 21, 2002
85
Hi,
Is it possible to transfer a report once it has been opened in VBA to a file on a hard drive. What would be the easiest way to do this in VBA. The reson is the report has to be sent on a monthly basis via e-mail.
Thanks
Regards
Bill
 
You can use the OutputTo

eg.

DoCmd.OutputTo acOutputReport, "rptAppend", acFormatTXT, "Append.txt", False

this sends the report called rptAppend to a text file called Append.txt
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top