This can be done by using DoCmd.SendObject
Syntax:
SendObject([ObjectType As AcSendObjectType = acSendNoObject], [ObjectName],
[OutputFormat], [To], [Cc], [Bcc], [Subject], [MessageText], [EditMessage],
[TemplateFile])
Since I don´t know more about your application and not exactly what in this
you need help with I can´t be more specific with my help to you.
But you have to collect the addresses from your application, ex. by Opening
a recordset an loop strough the field containing the addresses you need and
then concatenate these addresses seperated with a semicolon ";" (without the
"").
Then run DoCmd.SendObject where you specifye which report in your
application you want to send. Replace [ObjectName] with the string name of
your report and also replace [To] with a string variable holding the
concatenated e-mailaddresses.
To find out more about how to use DoCmd.SendObject type "DoCmd.SendObject "
in VBE-window and hit F1.
// Niklas
"cliveawalsh" <
[email protected]> skrev i meddelandet
I am trying to send information to many users ( a report for example) via
email. I have all the email address stored in my contacts table and would
like to be able to set up buttons to send to reports to these email
address.