Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Modules / DAO / VBA / February 2005

Tip: Looking for answers? Try searching our database.

setting references in code

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jesper F - 27 Feb 2005 11:45 GMT
I'm developing a db on my computer access 2k2 that the Microsoft Graph 11
object but I deploy the db on a access 2K machine. It only has the ms graph
10 object and I get a missing reference error until I manually correct the
reference to the graph 10 object and things work.
Can I set the graph 10 object reference through code so that the db will
work on the other machine without manual intervention?
Thanks.

Jesper
Douglas J. Steele - 27 Feb 2005 12:11 GMT
You can set references in code using the AddFromFile or AddFromGUID methods
of the References collection (see, for example,
http://msdn.microsoft.com/library/en-us/vbaac11/html/acmthCreateFromFile_HV05186
713.asp
)
but I'd recommend using Late Binding instead, so that you don't need a
reference.

Tony Toews has an introduction to the topic at
http://www.granite.ab.ca/access/latebinding.htm

Signature

Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)

> I'm developing a db on my computer access 2k2 that the Microsoft Graph 11
> object but I deploy the db on a access 2K machine. It only has the ms
[quoted text clipped - 6 lines]
>
> Jesper
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.