?
Solved

user-defined error with Dim olApp As Outlook.Application

Posted on 2008-10-06
2
Medium Priority
?
1,040 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 375 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article shows how to make a Windows 7 gadget that accepts files dropped from the Windows Explorer.  It also illustrates how to give your gadget a non-rectangular shape and how to add some nifty visual effects to text displayed in a your gadget.…
A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
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…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Suggested Courses

839 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