Access 97 and Outlook 2007

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello all,

Got a compatibility question for ya.

I developed an access application that has sends email using outlook. My
code is given below, can I still used this code after the IT dept. upgrade to
MS Outlook 2007?

Thanks
----------------------
Dim App as Object
Dim Mail as Object

Set App = CreateObject("Outlook.Application")
App.Session.Logon

Set Mail = App.CreateItem(0)

With Mail
.To = emailRecipient
.Subject = subjectOfEmail
.Body = bodyOfMessage
.Send
End With
------------------
 
It should work perfectly - just as before. Possibly even better because you
should not get those pesky "a program is trying to send email" popups.
 
Back
Top