Is it possible to create a report without previewing or printing it?

O

Opal

I want to be able to create a report but I do not want to preview it
or print it. I want simply to
output it to an .rtf file for emailing. The report runs off of a
query but running the query only does not solve my issue.

Is there a way to accomplish this?

Thank you.
 
F

fredg

I want to be able to create a report but I do not want to preview it
or print it. I want simply to
output it to an .rtf file for emailing. The report runs off of a
query but running the query only does not solve my issue.

Is there a way to accomplish this?

Thank you.

Look up the OutputTo method in VBA help

DoCmd.OutputTo acOutputReport, "ReportName", acFormatRTF,
"c:\YourFolderName"

Be aware that reports sent as .rtf files lose their graphics.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top