Solved

user-defined error with Dim olApp As Outlook.Application

Posted on 2008-10-06
2
1,026 Views
Last Modified: 2008-10-08
I get the above error from line :

Dim OlApp As Outlook.Application

I'm using Acess 2007 so don't see how I navigate to check Microsoft Access 11.0 Object Library ref is ticked.  I've seen in similar answers that you go to  Tools/references  but; this isn't there in access 2007 so how do I do this.

I tried adding an activex control for microsoft office outlook command button control to see if this was the equivalent but; won't let me do this.

Any suggestions would be apreciated.
0
Comment
Question by:ellizz
2 Comments
 

Author Comment

by:ellizz
ID: 22648327
I have now got passed that error by using late binding but; now when run the code get automation error, the specified module could not be found
Does anyone know what this means and how to fix it?
Thanks
0
 
LVL 96

Accepted Solution

by:
Bob Learned earned 125 total points
ID: 22655622
1) Access 2007 is Access 2.0, which is on the COM tab

2) You are trying to create an Outlook application instance.
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

As more and more people are shifting to the latest .Net frameworks, the windows presentation framework is gaining importance by the day. Many people are now turning to WPF controls to provide a rich user experience. I have been using WPF controls fo…
For most people, the WrapPanel seems like a magic when they switch from WinForms to WPF. Most of us will think that the code that is used to write a control like that would be difficult. However, most of the work is done by the WPF engine, and the W…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now