Your statement indicates that you have already
accomplished what I am trying to achieve, that is, sending
a Calendar item, e.g. Meeting details, to Outlook 98 from
Access 97. If this is so, would you mind supplying the
code that you used? In exchange, I use the following for
file attachments:
amongst the usual, set a var for
objOutlookAttach As Outlook.Attachment
Set objOutlook = CreateObject("Outlook.Application")
Set objOutlookMsg = objOutlook.CreateItem(olMailItem)
With objOutlookMsg
Set objOutlookRecipTo = .Recipients.Add(Forms!f_Purchases!
eMailTo) [or wherever you have the name stored]
objOutlookRecipTo.Type = olTo
objOutlookRecipTo.Resolve
Set objOutlookRecipCC = .Recipients.Add(Forms!f_Purchases!
ccEmailto) [--ditto--]
objOutlookRecipCC.Type = olCC
objOutlookRecipCC.Resolve
.Subject = MyStr3 [notated elsewhere in the code]
.Body = MyStr [ --ditto--]
.Attachments.Add (MyStr2) [--ditto--]
.Attachments.Add (MyStr4) [ a 2nd file --ditto--]
.Importance = olImportanceHigh
objOutlookMsg.Display [forces Outlook to wait before
sending]
Set objOutlook = Nothing
End With
I hope this is what you were looking for
Regards
Dave B.
-----Original Message-----
Using Outlook 98 and Access97:
I have sucessfully generated an Outlook Meeting request from Access, and set
the Start, Duration, Subject and Location parameters.
I would like to have a file included as an attachment. How do I set this
up?
Thanks,
Andy
.