Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help ! Insert Object into Outlook Mail using Access VBA

Status
Not open for further replies.

boardy

Programmer
Jul 11, 2002
2
GB
Until now i've used the following function to create a new mail message and add an attachment to it:

Function Attach_fraud_notif(filename As String, tolist As String, message As String, subj As String)
Set myOlApp = CreateObject("Outlook.Application")
Set myitem = myOlApp.CreateItem(olMailItem)
myitem.Display
myitem.subject = subj
myitem.To = tolist
myitem.body = message

Set Myattachments = myitem.Attachments
If filename <> &quot;&quot; Then
Myattachments.Add filename, _
olByValue, Len(message) + 1
End If
End Function

But now i would like to insert an object in the mail instead of an attachment.

Any ideas on the syntax would be appreciated.

Boardy.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top