I spent this evening converting a couple of my Outlook routines to use late
binding. That is REALLY cool!!!! I do hope Dr. Koops is still reading this
thread because even though it doesn't resolve his original problem (i.e. you
still can't bind to an object library that just isn't there) it sure does
make it simpler to deal with multiple versions of a library that is there!
Anyway, I have one more little question regarding the subject of early/late
binding...
In Access 2002/XP, the ADO library is the default and I had to manually
create a reference to the DAO library. I'm assuming I can use late binding
with the DAO library as well, right? If that's the case, then the only
libraries I really need an explicit reference to are the required ones:
Access, VBA, OLE and ADO. Right?
Thanks, again, for all the help! I'm learning SO much! And, someday, I
might actually get this application finished!
Regards, Chris
"Douglas J. Steele" wrote:
> "Rick Brandt" <(E-Mail Removed)> wrote in message
> news:8nYjk.13778$(E-Mail Removed)...
> > Chris O''''Neill wrote:
> >>
> >> This brings up another question... If the user has Access/Outlook
> >> 2003 or 2007 installed, is it possible to programmatically search for
> >> msoutl.olb on their system, change the reference to point at that
> >> library, and have the application run properly? Or, will my
> >> application *only* run on an Access/Outlook XP (2002) system? (Btw,
> >> I'm assuming that my application will *not* run on anything earlier
> >> than Access/Outlook XP, right?)
> >>
> >> If the answer to that last question is that it will run so long as the
> >> reference is changed, can someone explain how to programmatically
> >> change the reference? I'm assuming that'd be a DAO routine, right?
> >
> > Search these groups for "Late Binding". It accomplishes exaclty what you
> > are describing although not in the manner you describe. It is the only
> > practical way to use external libraries in a distributed app. Basically
> > it is a way to utilize external code libraries without setting a reference
> > to them.
>
> Tony Toews has some introductory material on Late Binding at
> http://www.granite.ab.ca/access/latebinding.htm
>
> --
> Doug Steele, Microsoft Access MVP
> http://I.Am/DougSteele
> (no e-mails, please!)
>
>
>
>