Email reports in certain formats

gls

Want to be guru
Local time
Today, 15:24
Joined
Mar 5, 2008
Messages
40
Hi

When i hit the command button to email a report, a small window appears asking what output would i like to use, Excel, RTF, Snapshot etc. I always want the report to output using snapshot, is there someway I can tell the button once clicked, I would like the output to be snapshot viewer to avoid the window poping up.

Thankyou

Garry
 
This should do it for you:

DoCmd.OutputTo acOutputReport, "YourReportNameHere", acFormatSNP, "YourOutputFileAndPathHere"
 
Output file

Thankyou, where would i put this code you sent. Also I want the report to load as an email attachment, to to a file location. Can you help.
 

Users who are viewing this thread

Back
Top Bottom