Hi Guys, hope you can help.
I have an action to send email as part of a close form button action.
Code:
DoCmd.SendObject acSendReport, strReport, acFormatPDF, StrTo, , , "Credit Note Raised (Edited)", "Please make the relevant stock changes for this/these items, see attached."
This works fine, but it needs the email to be sent before the close form is completed. Additionally, if I cancel the send, it then goes to the debug/end option.
I would therefore like to way to be able to cancel the send if not required as part of the process.
Anyone any suggestions to improve this?
Thanks