Home  Fees/Services  Access Templates  Tutorials  Access Download  Articles  Search  Contact  Privacy  Links

Microsoft Access Download
Download Access Send Email To Outlook Code

VBA Send Email Access Example Access 2007 Download

 Microsoft Access Download> Send Email From Access to Outlook

 
 

How To Open Email Using SendObject Access Download

Send Email Microsoft Access Tutorial Download (Advanced)

Multi Select List Box Query Parameters

Row Level Data Security

Programming MS Access Security Alternative

Inventory Calculations Download ( Single User)

How To Perform Inventory Calculations (Multi-User)

Make Dependent Combo Box Code MS Access  Tutorial Download

Union Query Example (Simple)

Union Query (Advanced) Access Tutorial Download

How To Fill Fields From Combo Box

Use Global Variables as Parameters

Download Continuous Form Dependent Combo Box

How To Program Continuous-Continuous Master/Detail Forms

Download Example for Bar Chart/ Bar Graph on Access Forms

Programming Crosstab Query Example

TransferText & OutputTo Microsoft Access Download

DoCmd.OpenForm & OpenArgs VBA Example

Running Sum Query Method

Choose Command Dynamic SQL Order By

Access Conditional Format

Access Report Banding

Popup Form Control Method

 

Send Email from Access to Outlook

Download the Access Visual Basic Outlook API to open up an email message from an Access form.

You can use this VB code to automatically fill in the subject and body text of the email.  The download also demonstrates the ability to attach an external document to the Outlook email.

Here is a snapshot of the code contained in the database example download:

Private Sub Command20_Click()

Dim mess_body As String
Dim appOutLook As Outlook.Application
Dim MailOutLook As Outlook.MailItem
Set appOutLook = CreateObject("Outlook.Application")
Set MailOutLook = appOutLook.CreateItem(olMailItem)

Set appOutLook = CreateObject("Outlook.Application")
Set MailOutLook = appOutLook.CreateItem(olMailItem)
With MailOutLook
    .BodyFormat = olFormatRichText
    .To = Me.Email_Address
    .Subject = Me.Mess_Subject
    .HTMLBody = Me.Mess_Text
    If Left(Me.Mail_Attachment_Path, 1) <> "<" Then
        .Attachments.Add (Me.Mail_Attachment_Path)
    End If
    '.DeleteAfterSubmit = True 'This would let Outlook send the note without storing
     it in your sent bin

    .Send
End With
'MsgBox MailOutLook.Body
Exit Sub
email_error:
MsgBox "An error was encountered." & vbCrLf & "The error message is: " & Err.Description
Resume Error_out
Error_out:
End Sub

Click here to download the Download Access 2000 Email Example.

Access Example Download Send Email
 

To get rid of the annoying MS Outlook popup requesting you to verify that you want to send the email you can try out ClickYes software.



Contact Information 

Microsoft Access Help

Microsoft Access Download • Access 2007 Download • MS Access Database Download