I am using the sendobject function to generate an e-mail. This works fine....until the e-mail is canceled, access generates an error saying the action has been canceled.<br><br>Is there any way of contoling this, the On Error wont work.<br><br>Cheers
Nope. That's normal<br>Don't cancel the e-mail.<br>Its just verifing that it was canceled.<br>Worry about something else.<br><br> <p>DougP<br><a href=mailto: dposton@universal1.com> dposton@universal1.com</a><br><a href= > </a><br> Ask me how Bar-codes can help you be more productive.
You can use On Error to fix this. In the module which calls the SendObject function, use On Error to branch to an errorhandler which looks similar to the following:<br><br>EMailErrorHandler:<br> If Err=xxx then 'insert the correct error number in<br> place of the x's<br> MsgBox ("The EMail was not sent!"<br> Else<br> MsgBox Err$<br> end if<br> Exit Sub<br><br>This will give your users positive feedback about what they did. BTW, I've found that while cancelling an email from Outlook generates the error, cancelling from Outlook Express does not.<br>
The same thing happens to me, only access goes down totally with no possibility to debug the code. Is it possible to have access send the mail through outlook express even though outlook is the default mail client?
/Linus
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.