Feb 18, 2005 #1 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
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
Feb 18, 2005 1 #2 DoubleD Technical User Apr 2, 2001 766 US DoCmd.OutputTo acOutputReport,"ReportNameHere",acFormatRTF,"FileToSaveTo" I am what I am based on the decisions I have made. DoubleD Upvote 0 Downvote
DoCmd.OutputTo acOutputReport,"ReportNameHere",acFormatRTF,"FileToSaveTo" I am what I am based on the decisions I have made. DoubleD
Feb 18, 2005 1 #3 mp9 Programmer Sep 27, 2002 1,379 GB 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. http://www22.brinkster.com/accessory/ Upvote 0 Downvote
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. http://www22.brinkster.com/accessory/
Feb 18, 2005 #4 DoubleD Technical User Apr 2, 2001 766 US mp9, Good solution. hehehe I am what I am based on the decisions I have made. DoubleD Upvote 0 Downvote