Aug 16, 2001 #1 Gti Programmer Jul 23, 2001 99 PT what i need is when i hit a button the database report is automaticaly pass to a Word file *.DOC How can i do it in VBA code? Tkx
what i need is when i hit a button the database report is automaticaly pass to a Word file *.DOC How can i do it in VBA code? Tkx
Aug 16, 2001 #2 jjonesal Programmer May 10, 2001 277 US Add this code to the OnClick property of the button: DoCmd.OutputTo acOutputReport, "reportname", acFormatRTF, "c:\My Documents\filename.rtf", False where reportname = name of your report and filename = the name of the file Hope this helps... J. Jones jjones@cybrtyme.com Upvote 0 Downvote
Add this code to the OnClick property of the button: DoCmd.OutputTo acOutputReport, "reportname", acFormatRTF, "c:\My Documents\filename.rtf", False where reportname = name of your report and filename = the name of the file Hope this helps... J. Jones jjones@cybrtyme.com