Howdy,
I'm trying to use the CDO sendmail method that I found in a FAQ here, but I have some computers that are sure to not have the CDOsys reference enabled on their machines. If I use late binding to set this reference, I get errors when and if the reference is already set. I use this to set the reference before running the CDO email code in a form module:
Is there a way to logically check whether this reference is already set on the machine running the code, and only set it if it is not?
I'm trying to use the CDO sendmail method that I found in a FAQ here, but I have some computers that are sure to not have the CDOsys reference enabled on their machines. If I use late binding to set this reference, I get errors when and if the reference is already set. I use this to set the reference before running the CDO email code in a form module:
Code:
References.AddFromFile "C:\WINDOWS\System32\cdosys.dll"
Is there a way to logically check whether this reference is already set on the machine running the code, and only set it if it is not?