Hi all
Ok
Here is my problem:
I am using the blow code to send an e-mail with an attached object. I can't find a way to link this code to a field alled Mail ID in table TeamMembers.
Here is the code:
Function Mail()
DoCmd.SendObject acSendReport, "nextweek", acFormatRTF, (!!E-mail address here!!), , , "The Rota for next week starting- " & Date - (DatePart("w", Date, 2) - 8), "Next weeks Rota for the Odin BSS team is attached" & Chr$(13) & Chr$(10) & Chr$(13) & Chr$(10) & "Many Thanks" & Chr$(13) & Chr$(10) & Chr$(13) & Chr$(10) & "Automated Rota Datasbase E-mail", 1
End Function
(!!E-mail address here!!) is where the code needs to go to for the e-mail addresses.
I want a bit of code so that when a run this script it populates the e-mail, takes all the addresses from the field in the table and then the e-mail is ready to send.
Any Ideas?????
All help is appreciated.
Many Thanks
Tim
"knowledge is someone else's inspiration."
Ok
Here is my problem:
I am using the blow code to send an e-mail with an attached object. I can't find a way to link this code to a field alled Mail ID in table TeamMembers.
Here is the code:
Function Mail()
DoCmd.SendObject acSendReport, "nextweek", acFormatRTF, (!!E-mail address here!!), , , "The Rota for next week starting- " & Date - (DatePart("w", Date, 2) - 8), "Next weeks Rota for the Odin BSS team is attached" & Chr$(13) & Chr$(10) & Chr$(13) & Chr$(10) & "Many Thanks" & Chr$(13) & Chr$(10) & Chr$(13) & Chr$(10) & "Automated Rota Datasbase E-mail", 1
End Function
(!!E-mail address here!!) is where the code needs to go to for the e-mail addresses.
I want a bit of code so that when a run this script it populates the e-mail, takes all the addresses from the field in the table and then the e-mail is ready to send.
Any Ideas?????
All help is appreciated.
Many Thanks
Tim
"knowledge is someone else's inspiration."