Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2006-07-07
7
Medium Priority
?
514 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 252 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
Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

 
LVL 85

Assisted Solution

by:Scott McDaniel (Microsoft Access MVP - EE MVE )
Scott McDaniel (Microsoft Access MVP - EE MVE ) earned 248 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

 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

Question has a verified solution.

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

Access custom database properties are useful for storing miscellaneous bits of information in a format that persists through database closing and reopening.  This article shows how to create and use them.
We live in a world of interfaces like the one in the title picture. VBA also allows to use interfaces which offers a lot of possibilities. This article describes how to use interfaces in VBA and how to work around their bugs.
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

971 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