views:

471

answers:

4

I am using DoCmd.SendObject to send emails from MS access 2003. It opens the outlook with all relevant fields filled. But the user may not choose to send the email at that time. In that case, a prompt 'Send Action was cancelled' appears. Is there a way to catch this non-sending of email by user

+1  A: 

You've sent the object to Outlook.

I don't believe there's a way for Outlook to reply to your Access command.

databyss
Unfortunately, this seems to be dead-end then :(
Varun Mahajan
+1  A: 

databyss is right when writing there is no way for Outlook to reply to your Access command. Instead of using this loosy "sendObject" command, I'd advise you to create an Outlook instance from your VBA code (after registering the Microsoft Outlook Object Library in tools/references)? You would be then able to manage your emails in a very efficient way.

Philippe Grondier
+2  A: 

It is possible to use Outlook events from Microsoft Access with a class module. You will find details in the LessThanDot wiki, under the heading "Example: Use Outlook Events with Access"

Remou
A: 

Perhaps Tony Toews's Access EMail FAQ would be of use to you.

David-W-Fenton