Hi there
I have implemented both methods to send an email from my form, but it seems that there are subtle differences.
It seems that 'objMailItem.Send', creates and sends the message 'silently' (no confirmation from the user is required), whereas the 'DoCmd.SendObject' method requires the user to actually click the 'Send' button from Outlook.
In both cases, I need to attach a report that is created by access when the user clicks the my 'Send Email' button.
I have managed to get it working using 'DoCmd.SendObject'.
But it seems that the 'objMailItem.Send' method will only attach an existing file, (saved somewhere on the system)
Are you able to advise me how to attach an access report that is generated at run time.
Thanks
I have implemented both methods to send an email from my form, but it seems that there are subtle differences.
It seems that 'objMailItem.Send', creates and sends the message 'silently' (no confirmation from the user is required), whereas the 'DoCmd.SendObject' method requires the user to actually click the 'Send' button from Outlook.
In both cases, I need to attach a report that is created by access when the user clicks the my 'Send Email' button.
I have managed to get it working using 'DoCmd.SendObject'.
But it seems that the 'objMailItem.Send' method will only attach an existing file, (saved somewhere on the system)
Are you able to advise me how to attach an access report that is generated at run time.
Thanks