Good Day
I was hoping someone could please assist. I am currently creating a send email via form. But just dont seem to get passed the following error and hoped someone could perhaps assit.
I am using Access 2003
Exchange Server
And set all the necessary references within my module i.e
Microstof Outlook 11 Object Library.
I am trying to run the following code via a command after my fields have been filled in but get the Following error:
Run Time Error - 2147024770 (8007007e)
Automation Error
The Specific Module could not be found
and upon selecting debug takes me to the following line within the code
Any advise would be appreciated
Kind Regards
Natural
I was hoping someone could please assist. I am currently creating a send email via form. But just dont seem to get passed the following error and hoped someone could perhaps assit.
I am using Access 2003
Exchange Server
And set all the necessary references within my module i.e
Microstof Outlook 11 Object Library.
I am trying to run the following code via a command after my fields have been filled in but get the Following error:
Run Time Error - 2147024770 (8007007e)
Automation Error
The Specific Module could not be found
and upon selecting debug takes me to the following line within the code
Code:
Set appOutLook = CreateObject("Outlook.Application")
Code:
Private Sub SendEmail_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)
With MailOutLook
.BodyFormat = olFormatRichText
.To = Me.Email_Address
.CC = Me.CC_Address
.BCC = Me.BCC_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
.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
Any advise would be appreciated
Kind Regards
Natural