Dear all, 
I have been searching the web for an answer, I might have found it but I still don't get it. :banghead:
I'm trying to deploy a database to several users, and I would like to make sure they all have a valid reference to the Microsoft Outlook Object Library so as to be able to send emails with attachments from Access.
On the computer on which I developped the database, it is located at : Outlook: C:\Program Files\Microsoft Office\Office14\MSOUTL.OLB, but on some of the users computer, the reference library might be C:\Program Files (x86)\Microsoft Office\Office15\MSOUTL.OLB.
Is this a problem with the library OLB or finding the path to it?
From what I can gather online, I have the following options:
1. Copying the OLB to each one of the users'computers manually. But it sounds a little the most painful option, and probably harder to sustain over the long-run. (link)

3. Programmatically (via VBA code or macro?) ensure all libraries references are valid before the database launches. And if they're not, reconnect them with a Declare statement (link)
Something like:
This methods has my preference for now, but I'm not sure how to implement it. How do I declare the library file path?

I have been searching the web for an answer, I might have found it but I still don't get it. :banghead:
I'm trying to deploy a database to several users, and I would like to make sure they all have a valid reference to the Microsoft Outlook Object Library so as to be able to send emails with attachments from Access.
On the computer on which I developped the database, it is located at : Outlook: C:\Program Files\Microsoft Office\Office14\MSOUTL.OLB, but on some of the users computer, the reference library might be C:\Program Files (x86)\Microsoft Office\Office15\MSOUTL.OLB.
Is this a problem with the library OLB or finding the path to it?

From what I can gather online, I have the following options:
1. Copying the OLB to each one of the users'computers manually. But it sounds a little the most painful option, and probably harder to sustain over the long-run. (link)
2. Late binding seeems like an extreme solution: I understand that I would have to modify my underlying code accordingly (rplace the 'New' statements by a 'Create Object' (?) and in the end, I guess the others that do not have the required library won't be able to enjoy the full functionality in the database I've distribute to them...Another method of verify the correct reference is by including files in the application's root folder. As this is the last folder that get checked for libraries before VBA decides that they don't exist, it is a good place to store various reference files that may not be available elsewhere in a particular environment.

3. Programmatically (via VBA code or macro?) ensure all libraries references are valid before the database launches. And if they're not, reconnect them with a Declare statement (link)
Something like:
Code:
Declare Function DllRegisterServer Lib "<yourlib.dll>" () As Long