Hi everyone
I have a form in MS Access 2007 from which I can send an email, this works fine, and I have managed to trap the error code when the user cancels the email, again this works fine.
The problem I am having is that I want the form to close after the user has sent the email or clicked the send email button. When the Outlook window opens, it seems the script then stops unless an error occurs. While I can return the error code to show the email wasnt sent, is there any way for Access to know the email was sent and then close the form?
Thanks
Gary
I have a form in MS Access 2007 from which I can send an email, this works fine, and I have managed to trap the error code when the user cancels the email, again this works fine.
The problem I am having is that I want the form to close after the user has sent the email or clicked the send email button. When the Outlook window opens, it seems the script then stops unless an error occurs. While I can return the error code to show the email wasnt sent, is there any way for Access to know the email was sent and then close the form?
Thanks
Gary