How can I send an email to multiple email addresses through Outlook 2007

farisallil

New member
Local time
Today, 08:18
Joined
Jul 14, 2009
Messages
3
Hi
I have a table called Info with a column called Email Address in it. I want to create a command button in a form called Customer ,which has the Info table as the Record Source, and I want this command to open up a new email window in Outlook 2007 and copy all the email addresses to the To field without forgetting adding a semicolon after each email

How can I do that? or what is the VB code for such button?
I'm not so good in Access but I have a little experience :D

Any help will be greatly appreciated
 
The code behind your button will look something like this;
Code:
Private Sub CmdEmail_Click()
DoCmd.SendObject acSendReport, "ReportNameHere", "FormatHere", MessageTo, MessageCC , MessageBCC , "SubjectHere", [Body], True
End Sub

To concatenate your email address see the example in this link
 

Users who are viewing this thread

Back
Top Bottom