P
PiperSkip
Guest
Is It Possible to Assign References Dynamically?
I'm developing an enhancement for a 35 user business application written in Access 2000 (largely VBA) on the fromt end and SQL Server on the back end. I'm attempting to generate an Outlook e-mail message in response to a particular event. I've do this before in closely controlled environments where all user were running the same version of Outlook, but in this case we have users running versions 8, 9 and 10; primarily Outlook 2000 and Outlook XP. My enhancement runs out of a mdb library to the main program were the same library is delivered to all users.
If I reference a particular version of Outlook and a user has a different one installed that user gets an error during program loading and emails will not be generated.
If I try late binding using the GetObject function, I can't reference Outlook properties and methods necessary to create the message.
I'm looking for some way to determine the user's installed Outlook version and establish the appropriate reference at run time, perhaps involving conditional compilation.
Anyone have any experiece solving this problem or suggestions?
Thanks for your time and brain power.
PiperSkip (now Drum Major Skip because of bad wrists)
I'm developing an enhancement for a 35 user business application written in Access 2000 (largely VBA) on the fromt end and SQL Server on the back end. I'm attempting to generate an Outlook e-mail message in response to a particular event. I've do this before in closely controlled environments where all user were running the same version of Outlook, but in this case we have users running versions 8, 9 and 10; primarily Outlook 2000 and Outlook XP. My enhancement runs out of a mdb library to the main program were the same library is delivered to all users.
If I reference a particular version of Outlook and a user has a different one installed that user gets an error during program loading and emails will not be generated.
If I try late binding using the GetObject function, I can't reference Outlook properties and methods necessary to create the message.
I'm looking for some way to determine the user's installed Outlook version and establish the appropriate reference at run time, perhaps involving conditional compilation.
Anyone have any experiece solving this problem or suggestions?
Thanks for your time and brain power.
PiperSkip (now Drum Major Skip because of bad wrists)