Feb 18, 2005 #1 Dylan MIS Joined Aug 27, 1998 Messages 109 Location 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 Joined Apr 2, 2001 Messages 766 Location 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 Joined Sep 27, 2002 Messages 1,379 Location 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 Joined Apr 2, 2001 Messages 766 Location US mp9, Good solution. hehehe I am what I am based on the decisions I have made. DoubleD Upvote 0 Downvote