error 2501 The SendObject was cancelled

mrrayj60

Registered User.
Local time
Today, 16:17
Joined
Sep 3, 2009
Messages
103
I have a button that opens outlook and puts the forms email address in, click send and everything is good. If I close the email without sending it gives me a runtime error 2501 The SendObject was cancelled. It's only a problem if I do not send an email. Any thoughts?
Thanks, Ray


Private Sub txtemail_Click()
DoCmd.SendObject acSendNoObject, , , emailtxt, , True
End Sub
 
I am having the exact same trouble as MrRayj60 with my Access 2007 form. I have a button that opens Outlook and puts the forms email address in, click send and everything is good.

However, if I close the email without sending, it gives me a "Run-time error 2501 The SendObject action was cancelled". This error only happens if I do not send an email. If I send the email, the remainder of the script runs fine.

How do I supress or eliminate this error???
 
Trap for the error, as already answered.
 
What makes you think that the solution in #2 does not apply to you?
 

Users who are viewing this thread

Back
Top Bottom