+ Reply to Thread
Results 1 to 3 of 3

reference to MS ActiveX Data Objects 2.8 Lib

  1. #1
    Forum Contributor
    Join Date
    09-28-2007
    Location
    New York, NY
    MS-Off Ver
    2007
    Posts
    120

    reference to MS ActiveX Data Objects 2.8 Lib

    I've written some code that requires the MS ActiveX Data Objects 2.8 Library. I've exported the book as an excel addin (.xla) and installed it on another computer. Apparently, that computer doesn't have this library and the code won't run. It gets hung up on:

    Please Login or Register  to view this content.
    Both computers have Microsoft DAO 3.6 Object Library. I don't know if its even the same thing. But when I un-reference the 2.8 and reference the 3.6, the code still won't work. It gets hung up on the same spot. Is there a way I can encapsule the 2.8 library with my xla so it works on any computer? or is there a way I can re-write my code to work with 3.6? Or are these 2 libraries not even related to each other? Also, I'm using Office 2007 on both computers if that matters, but I'd like my code to work with old versions also.

    Below is my entire code. It just queries a SQL server.

    Thx

    Please Login or Register  to view this content.
    Last edited by MCCCLXXXV; 05-15-2009 at 09:18 AM.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: reference to MS ActiveX Data Objects 2.8 Lib

    DAO and ADO are different beasts... you need to reference the Active X Data Object library ... are there any listed ? (2.5 etc.. 2007/Vista I think uses 6.0). If none listed you will need to install MDAC Components to the client in question.
    Last edited by DonkeyOte; 05-15-2009 at 11:14 AM.

  3. #3
    Forum Contributor
    Join Date
    09-28-2007
    Location
    New York, NY
    MS-Off Ver
    2007
    Posts
    120

    Re: reference to MS ActiveX Data Objects 2.8 Lib

    Actually yea I just found it in the other computer. Enabled it and it works fine. But now I'm wondering how I can make my code such that I dont have to manually go in and reference the library on each computer I install this XLA on. Is that possible?

    Thanks

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1