Forum Discussion
Please_ser
Apr 06, 2023Copper Contributor
Sending an Outlook email with attachments from Access VBA
My Access database sends emails through Outlook using VBA code. It works correctly if I don't specify a file to attach. It I do, I get an error. I am using Windows 11 Pro and Microsoft 365.
Apr 07, 2023
Hi,
Your code works without problem here when I test it.
This message can also pop up when the path and/or file you are trying to add as attachment are wrong or not accessible out of any reason. Are you sure that it is? Perhaps test it with a simple local path and file.
Servus
Karl
****************
Access Bug Trackers
Access News
Access DevCon
Please_ser
Apr 07, 2023Copper Contributor
Thanks for testing the code. I have tried to attach a local file but perhaps I should try that again. Do you think it has something to do with the version of Office I am using? It is Office 365 Family.