K
kinetix
Guest
I have the following module which sends a report to an e-mail address. Instead of sending it to a stated address i want it to send the report to
e-mail addresses contained in a Customer E-mail field in a Customer table.
Function send()
On Error GoTo send_Err
DoCmd.SendObject acReport, "Title", "HTML(*.html)", "email@email.com", "", "", "Subject", "Message", False, ""
send_Exit:
Exit Function
send_Err:
MsgBox Error$
Resume send_Exit
End Function
So basically i want to know how i can replace the "email@email.com" part with a reference to a field in a table.
Thanks In Advance!
e-mail addresses contained in a Customer E-mail field in a Customer table.
Function send()
On Error GoTo send_Err
DoCmd.SendObject acReport, "Title", "HTML(*.html)", "email@email.com", "", "", "Subject", "Message", False, ""
send_Exit:
Exit Function
send_Err:
MsgBox Error$
Resume send_Exit
End Function
So basically i want to know how i can replace the "email@email.com" part with a reference to a field in a table.
Thanks In Advance!