Avatar of iymanb
iymanb

asked on 

MS ACCESS file show error [Error in Loading DLL] in VBA code that sends email via outlook

I need to put VBA code in MS ACCESS file to send emails,
I used the date type outlook.applicatoin,

I get error message : [that user-defined type NOT defined]
So I go Tools>References and click checkbox "Microsoft Outlook 15.0 Object Library"

Now the error message says : Error in Loading DLL  

It appears at this line of code :

        Set MailOutLook = appOutLook.CreateItem(olMailItem)
UU.png
Outlook* dllVBAMicrosoft Access

Avatar of undefined
Last Comment
iymanb

8/22/2022 - Mon