troubleshooting Question

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

Avatar of iymanb
iymanb asked on
Microsoft AccessOutlookVBA* dll
9 Comments1 Solution168 ViewsLast Modified:
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
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 9 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 9 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros