Solved

emailing from Access: "Outlook.Application" issue with Outlook object library

Posted on 2004-08-23
5
782 Views
Last Modified: 2009-02-16
In my code, I specify the line to start my email task,

Set objOutlook = CreateObject("Outlook.Application")

I DID go to Tools, References, and checked "Microsoft Outlook 11.0 object library" (I have Outlook 2003)
But, when Access hits the above line, I get Automation error, the specified module could not be found.

what gives?
0
Comment
Question by:ToddRod_Taylor
  • 2
5 Comments
 
LVL 39

Expert Comment

by:stevbe
ID: 11878691
if you are early binding a library (checking the reference box) then you should early bind in your code ...

Set objOutlook = New Outlook.Application

Steve
0
 

Author Comment

by:ToddRod_Taylor
ID: 12016245
I changed my code to early binding; and I still get the same error
0
 
LVL 39

Accepted Solution

by:
stevbe earned 75 total points
ID: 12017322
Do any of your references say "Missing"? If so, please clear that reference and recompile to see if you really need the "Missing" reference. As soon as 1 reference goes goofy functionality of all other libraries is compromised.
If you type Set objOutlook = New    and then a space does Outlook show in the intellisense dropdown?

Steve
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Introduction The Visual Basic for Applications (VBA) language is at the heart of every application that you write. It is your key to taking Access beyond the world of wizards into a world where anything is possible. This article introduces you to…
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.

776 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