Solved

user-defined error with Dim olApp As Outlook.Application

Posted on 2008-10-06
2
1,032 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

What my article will show is if you ever had to do processing to a listbox without being able to just select all the items in it. My software Visual Studio 2008 crystal report v11 My issue was I wanted to add crystal report to a form and show…
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
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…

734 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