Hello all! I am once again banging my head. I have an email function that works perfectly for me, but everytime I try to implement it at my clients location it fails miserably. We both have Access 2013 with a Sharepoint backend and Outlook 2013. ? Code and error message below.
Code:
Private Sub Command0_Click()
Dim olApp As Object
Dim objMail As Object
Set olApp = CreateObject("Outlook.Application") 'Create a new instance of Outlook
'Create e-mail item
'Set objMail = olApp.CreateItem(olMailItem)
Set objMail = olApp.CreateItem(0)
With objMail
'Set body format to HTML
'.BodyFormat = olFormatHTML
.bodyformat = 2
.To = Me.emailaddress
.SentOnBehalfOfName = "chris@ABCmoving.com"
.Subject = "Thank you for choosing ABC Moving"
.HTMLBody = "Testing body of email function "
.Save
.send
End With
End Sub