Leo_Polla_Psemata
Registered User.
- Local time
- Today, 06:00
- Joined
- Mar 24, 2014
- Messages
- 364
Hi
With DoCmd.SendObject methode, we can send reports as email attachments.
Could we customize the attached file name ?
My report is tuned to filter on load [Forms]![FormName]![FieldName]
With the below line, the report on email attachment gets always the same name, the report name (or report caption)
DoCmd.SendObject acSendReport, reportName, acFormatPDF, "recipient@email.com", , , "Subject", "Message", True
Could we customize so the attachment gets a name based on a field from report ?
With DoCmd.SendObject methode, we can send reports as email attachments.
Could we customize the attached file name ?
My report is tuned to filter on load [Forms]![FormName]![FieldName]
With the below line, the report on email attachment gets always the same name, the report name (or report caption)
DoCmd.SendObject acSendReport, reportName, acFormatPDF, "recipient@email.com", , , "Subject", "Message", True
Could we customize so the attachment gets a name based on a field from report ?