Add Object Libraries with code

Teebird

Registered User.
Local time
, 07:49
Joined
Sep 3, 2006
Messages
60
Is it possible to run a piece of code that will add the relevant references to Access on opening the database.

The code would check that these references are ticked.
VB for Applications
MS Access 10 Object Library
OLE Automation
MS DAO 3.6 Object Library

Many thanks
Tee
 
Excellent - had a look at this link - do I have to add a SetRef for each of my references.
Run Code
SetRef("Access","c:\program files\commmon files\microsoft shared\VBA\VBA6\VBE6EXT.OLB")
Run Code
SetRef ("Access","c:\program files\common files\microsoft shared\DAO\dao360.dll")

etc...
 

Users who are viewing this thread

Back
Top Bottom