Access 2007 SP2
Outlook 2007 SP2
I’m opening Outlook from Access VBA, composing an e-mail message, and then sending it. If I watch Processes in Task Manager, the instance gets created fine and I step throught the code to the .Send command. When I execute that command, Outlook terminates (it disappears from the Task Manager Processes list). If I open Outlook from the desktop, it’s apparent that the e-mail did get sent before Outlook terminated. Since I want to send multiple e-mails, this presents a headache — I don’t want to re-create the Outlook object for each message!
Curiously, if Outlook is already open before I execute this “send e-mail” code (I check for an existing instance in the code and open a new instance only if an existing instance is not found), everything works fine. It’s only when I have to create the instance of Outlook in VBA that the “disappearing Outlook” problem described above raises its ugly head.
Any thoughts on what might be causing (and how to avoid it!) this would be greatly appreciated!!
Thanks,
Tom