Creating new mail with default mail program

Fides

Registered User.
Local time
Today, 01:43
Joined
Jul 17, 2012
Messages
23
Hello again,

I want to put 2 buttons on my form which creates a new mail using the default program. First button would have to put all email addresses in the database into the BCC field. The second button would put all people filtered by a listbox into the BCC field.

I hope this is clear enough. Haha.

Thanks in advance!
 
Have you had a look at the SendObject method.

It will look something like
Code:
    Dim stDocName As String

    stDocName = "RPT_SFPOStatusGen"
    DoCmd.SendObject acReport, stDocName, acFormatSNP, [EmailAdd], "brad@progressshipping.com;andrew@progressshipping.com;tony@progressshipping.com", , [SEmailSub], [EmailMess], True
The variables in the Square brackets [] all represent fields that reside on the calling form.
 
Isn't it possible to use the FollowHyperlink option? Then somehow loop through the database and get the emails?
 

Users who are viewing this thread

Back
Top Bottom