V
Vivi
Hi. I have one main form with one subform (keep multiple e-mail address)
linked by ID.
I use the following method to generate e-mail without no problems.
DoCmd.OpenReport "Myreport", acViewPreview,,"ID="&CINT(ID), acHidden
DoCmd.SendObject acSendReport,"Myreport",acFormat rft,
"(e-mail address removed)",,"subject", "message",False
DoCmd.Close acReport, "Myreport", acSaveno
1. But, in the mail subject, if I want to put: The invoice number (ID) is
changed", the ID will be the variable, how can I do it???
2. If I only want to send e-mail to those who in the subform, how can I do
it???
Thanks.
linked by ID.
I use the following method to generate e-mail without no problems.
DoCmd.OpenReport "Myreport", acViewPreview,,"ID="&CINT(ID), acHidden
DoCmd.SendObject acSendReport,"Myreport",acFormat rft,
"(e-mail address removed)",,"subject", "message",False
DoCmd.Close acReport, "Myreport", acSaveno
1. But, in the mail subject, if I want to put: The invoice number (ID) is
changed", the ID will be the variable, how can I do it???
2. If I only want to send e-mail to those who in the subform, how can I do
it???
Thanks.