Solved

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

Posted on 2004-08-23
5
780 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

Get up to 2TB FREE CLOUD per backup license!

An exclusive Black Friday offer just for Expert Exchange audience! Buy any of our top-rated backup solutions & get up to 2TB free cloud per system! Perform local & cloud backup in the same step, and restore instantly—anytime, anywhere. Grab this deal now before it disappears!

Join & Write a Comment

In the previous article, Using a Critera Form to Filter Records (http://www.experts-exchange.com/A_6069.html), the form was basically a data container storing user input, which queries and other database objects could read. The form had to remain op…
Introduction When developing Access applications, often we need to know whether an object exists.  This article presents a quick and reliable routine to determine if an object exists without that object being opened. If you wanted to inspect/ite…
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

705 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

16 Experts available now in Live!

Get 1:1 Help Now