G
Gina
I have been battling with this problem for a long time. Please get me out
of my misery!!!
Late Binding. there doesn't seem to be lot of information on the subject.
I need to send emails, tasks, contacts to outlook from MS Access using Late
Binding because of a compatibility issue with Outlook I cannot put any
Outlook references.
Can somebody please correct me.
Dim objOutlook As Object
Dim objMsg As Object
Dim objRecip As Object
Dim objAttach As Object
Set objOutlook = CreateObject("Outlook.Application")
Set objMsg = objOutlook.CreateItem(olMailItem)
With objMsg
Set objRecip = .Recipients.Add("Jo Blo")
objRecip.Type = olTo
.Subject = "Help me Please"
.Body = "Late Binding is harder than it sounds"
If Not IsMissing("C:\Hello.txt") Then
Set objAttach = .Attachments.Add("C:\Hello.txt")
End If
.Send
End With
Set objMsg = Nothing
Set objOutlook = Nothing
of my misery!!!
Late Binding. there doesn't seem to be lot of information on the subject.
I need to send emails, tasks, contacts to outlook from MS Access using Late
Binding because of a compatibility issue with Outlook I cannot put any
Outlook references.
Can somebody please correct me.
Dim objOutlook As Object
Dim objMsg As Object
Dim objRecip As Object
Dim objAttach As Object
Set objOutlook = CreateObject("Outlook.Application")
Set objMsg = objOutlook.CreateItem(olMailItem)
With objMsg
Set objRecip = .Recipients.Add("Jo Blo")
objRecip.Type = olTo
.Subject = "Help me Please"
.Body = "Late Binding is harder than it sounds"
If Not IsMissing("C:\Hello.txt") Then
Set objAttach = .Attachments.Add("C:\Hello.txt")
End If
.Send
End With
Set objMsg = Nothing
Set objOutlook = Nothing