abbaddon223
Registered User.
- Local time
- Today, 15:44
- Joined
- Mar 13, 2010
- Messages
- 162
Hi,
I'm using the below proceedures to create and email loop from access into ms outlook. I'm desperately trying to get outlook to load my default signature (which contains graphics in the signature) when access opens the event. No matter what I do, all it does is pull through the body text in access but doesn't put the signature in that outlook does if a created a new one through outlook!! Any help appreciated. Thanks in advance...
Do
If IsNull(Me.URN) Then
MsgBox "Email Completed", vbInformation, "User Update"
Exit Sub
End If
Dim olk As Outlook.Application
Set olk = CreateObject("Outlook.application")
Dim olkmsg As Outlook.MailItem
Set olkmsg = olk.CreateItem(olMailItem)
With olkmsg
Dim olkrecip As Outlook.Recipient
On Error Resume Next
Set olkrecip = .Recipients.Add(Me![EmailAddress])
olkrecip.Type = olTo
.Subject = (Me![SubjectLine])
.Body = (Me![BodyText])
On Error Resume Next
.Display
.Send
End With
On Error Resume Next
Set olk = Nothing
Set olkmsg = Nothing
Set olkrecip = Nothing
DoCmd.GoToRecord acDataForm, "Frm_EmailOut", acNext
Loop
End Sub
I'm using the below proceedures to create and email loop from access into ms outlook. I'm desperately trying to get outlook to load my default signature (which contains graphics in the signature) when access opens the event. No matter what I do, all it does is pull through the body text in access but doesn't put the signature in that outlook does if a created a new one through outlook!! Any help appreciated. Thanks in advance...
Do
If IsNull(Me.URN) Then
MsgBox "Email Completed", vbInformation, "User Update"
Exit Sub
End If
Dim olk As Outlook.Application
Set olk = CreateObject("Outlook.application")
Dim olkmsg As Outlook.MailItem
Set olkmsg = olk.CreateItem(olMailItem)
With olkmsg
Dim olkrecip As Outlook.Recipient
On Error Resume Next
Set olkrecip = .Recipients.Add(Me![EmailAddress])
olkrecip.Type = olTo
.Subject = (Me![SubjectLine])
.Body = (Me![BodyText])
On Error Resume Next
.Display
.Send
End With
On Error Resume Next
Set olk = Nothing
Set olkmsg = Nothing
Set olkrecip = Nothing
DoCmd.GoToRecord acDataForm, "Frm_EmailOut", acNext
Loop
End Sub