Solved

Reference library: Outlook 11.0 and other users still using Office10! "Problem loading DLL".

Posted on 2006-07-07
7
488 Views
Last Modified: 2011-10-03
Hi there,
Here's the scenerio: Access database I developed when I had Office Pro 2002.  My machine has been upgraded and IM department installed Outlook 2003 and retained the rest of Office 2002.  Now, when people enter the same database they have been using without a problem before, they receive the error message "Problem loading DLL" or something similar.  This distresses me slightly because I don't know how to trap that error and the user is thus introduced to the VBA editor in debug mode!  I have managed to find a quick and dirty fix which is highly similistic, but works: copy the Outlook 11.0 Object Library file (MSOUTL.OLB) from my computer and create a new folder called Office11 alongside their Office10 folder in Program Files > Microsoft Office and pop the MSOUTL.OLB file in there.  There has been 100% success using this tactic, but I am not satisfied:
Did Access automatically update the Outlook 10.0 Objects Library that I must have checked when developing to Outlook 11.0?
If so, would this have happened when I open the database? or will it be some kind of roll-out thing I should know about?
What would be a more suitable, long-term, sure-fast fix for this problem?
How can I trap this error in the future?

By the way, I no longer have the Outlook 10.0 Objects Library available in the list.
Your expert opinions are much appreciated on this issue.

Many thanks
Richard
0
Comment
Question by:Naryan108
7 Comments
 
LVL 65

Accepted Solution

by:
rockiroads earned 63 total points
ID: 17057088
Is your code making reference to this Outlook object library?
Have u got it as a activex control on your form or via code?

if via code, have u considered late binding, so that problems with different versions dont occurr?

0
 

Author Comment

by:Naryan108
ID: 17057127
I'm using the object library from code.  No I hadn't considered using late-binding; seems like that would do the trick though eh? (even though I'm gonna have to do some re-writing of code).
Thanks
Richard
0
 
LVL 65

Expert Comment

by:rockiroads
ID: 17057200
Sounds like u know what your doing then, so I wont bother with code examples
All I say is, I dont think it will be that much rewriting
change variables to be defined as Objects
and do a CreateObject instead of New

With late binding, u can remove the reference to the Outlook Object library. It is not required

0
Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

 
LVL 84

Assisted Solution

by:Scott McDaniel (Microsoft Access MVP - EE MVE )
Scott McDaniel (Microsoft Access MVP - EE MVE ) earned 62 total points
ID: 17057350
rocki is correct in that Late Binding will certainly work for you.

One other item - you cannot legally distribute MSOUT.OLB to endusers - it's a violation of the licensing agreement. Not that MS is gonna come down and jump you <g>, but it also can cause some pretty serious problems on the enduser machine ... Different versions of Outlook cannot co-exist on the same machine very well (which is why, when upgrading your Office install with a new version, while keeping the old version, you get a message stating you must upgrade your Outlook install).  Also, the MSOUT.OLB library is dependant on many, many other libraries, and many of those are version specific as well. While your Access code probably doesn't make use of any of these functions, using the library without supporting libraries can cause instability on the machine.
0
 

Author Comment

by:Naryan108
ID: 17057393
Hey, many thanks for that very valuable information.  I knew it was a dodgey solution and I don't want to use slapstick fixes.  I intend to implement the late binding solution asap.
Again, many thanks
Richard
0
 
LVL 27

Expert Comment

by:jjafferr
ID: 17461543
No comment has been added to this question in more than 21 days, so it is now classified as abandoned.

I will leave the following recommendation for this question in the Cleanup topic area:
    Split: rockiroads {http:#17057200} & LSMConsulting {http:#17057350}

Any objections should be posted here in the next 4 days. After that time, the question will be closed.

jjafferr
EE Cleanup Volunteer
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

In Debugging – Part 1, you learned the basics of the debugging process. You learned how to avoid bugs, as well as how to utilize the Immediate window in the debugging process. This article takes things to the next level by showing you how you can us…
I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
Familiarize people with the process of utilizing SQL Server stored procedures from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Micr…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

920 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

18 Experts available now in Live!

Get 1:1 Help Now