Code: Select all
Private Sub txtEMail_DblClick(Cancel As Integer)
Dim Msg As Outlook.MailItem
Dim appOutlook As New Outlook.Application
If Len(Nz(Me![txtEMail])) > 0 Then
'Bring up the Email program
Set Msg = appOutlook.CreateItem(olMailItem)
With Msg
.To = Nz(Me![txtEMail])
.Body = Nz(Me![txtFirstName]) & NL()
.Display
End With
Else
Beep
End If
End Sub
(The NL() inserts a line break.)
Can I stipulate the 'From' address in the above code?