R
rml
I have a form with a command button with the following code. When I click
the button, it sends a specific record to my e-mail called "Reportpdf" and it
works fine.
My question is this: How can i make the attachment have a different name
based on a field value. For instance, if the specific record had an id
(1234) number unique to that record, then I would like the attachment to be
named 1234.pdf. Is this possible?
I know it needs to open the "Reportpdf" form but can it be renamed?
Thanks.
DoCmd.SendObject acSendForm, "Reportpdf", acFormatPDF, Me![cemail],
Me![demail], "(e-mail address removed)", "Results - ID Number ",
"Attached are your results for Report ID - "
the button, it sends a specific record to my e-mail called "Reportpdf" and it
works fine.
My question is this: How can i make the attachment have a different name
based on a field value. For instance, if the specific record had an id
(1234) number unique to that record, then I would like the attachment to be
named 1234.pdf. Is this possible?
I know it needs to open the "Reportpdf" form but can it be renamed?
Thanks.
DoCmd.SendObject acSendForm, "Reportpdf", acFormatPDF, Me![cemail],
Me![demail], "(e-mail address removed)", "Results - ID Number ",
"Attached are your results for Report ID - "