Let Access automatically detect the Outlook Version installed on a User's PC and have that Outlook Versions Library automatically installed.
If Access can automatically identify the current version of Outlook installed on the users PC and automatically have that Outlook Versions Library installed will save a lot of time and confusion for the Developer. The Developer will not have to physically intervein with the Library settings and he can distribute the Access application to a mixed environment that has mixed versions of Outlook.
Maria Barnes commented
I agree with Arno. There are ways around this. Develop with your reference to whatever version and variable of specific (in this case Outlook) type. Then before releasing code unhook the reference and change your variables to type Variant. Use the CreateObject(, "Outlook.Application") or GetObject(, "Outlook.Application") No more mess!
Arno Nym commented
That´s why I use late binding (CreateObject() instead of new). There is no perfomance hit. But the "ol"-enumeration constants need to be replaced.