Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Solving Problems with Library References

Status
Not open for further replies.

Informatic

Programmer
Oct 4, 2002
34
DE
Installing or uninstalling any software may overwrite, remove, or de-register libraries.
How can I reference some libraries (like DAO) to an Access project .
I want to do this with VBA ,when the user start the database.

Help..............
 
If you are having problems with references on different machines, then don't use them!
Dim things as Objects then create them:

Dim xl as Object
set xl=CreateObject("Excel.Application")

or

Dim dbEngine as object
set dbengine=CreateObject("DAO.DBEngine.35")

and so on. It takes a small performance hit, but has got to be better than messing around finding out which references are available and which aren't!

HTH

Ben ----------------------------------------
Ben O'Hara
----------------------------------------
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top