L
LittlePenny
I have a command button on a form that uses a send object macro to
send a report. Everything works great. However I want to know is it
possible to choose the name of the attachment. I want the attachment
have the name of one of the fields in my form
[Forms]![frmMonthEndID]![Job Number]. Currently the attachment uses
the value in the caption control of the report.
My Code:
DoCmd.SendObject acSendReport, "rptID", acFormatRTF, _
"(e-mail address removed)", , , _
"Reprint for " & [Forms]![frmMonthEndID]![Job Number] & " ID: " &
_
[Forms]![frmMonthEndID]![ID], , False
Thanks
Little Penny
send a report. Everything works great. However I want to know is it
possible to choose the name of the attachment. I want the attachment
have the name of one of the fields in my form
[Forms]![frmMonthEndID]![Job Number]. Currently the attachment uses
the value in the caption control of the report.
My Code:
DoCmd.SendObject acSendReport, "rptID", acFormatRTF, _
"(e-mail address removed)", , , _
"Reprint for " & [Forms]![frmMonthEndID]![Job Number] & " ID: " &
_
[Forms]![frmMonthEndID]![ID], , False
Thanks
Little Penny