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 / Forms Programming / January 2005

Tip: Looking for answers? Try searching our database.

Dynamic file location

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
fldennis@gmail.com - 31 Jan 2005 13:45 GMT
I have various forms in my applciation that reference a specific icon
files in my application under the path of my MDE. My code works fine if
the location doesn't change (ie C:\appname). But if the user has to
place the "MDE" in some other location (S:\appname) my code will not
work. What is the best way to handle this?
AlCamp - 31 Jan 2005 13:55 GMT
As long as the icon file is always in the directory where the MDE resides...
   = CurrentProject.path & "\YourIcon.ico"
should work.
Al Camp

>I have various forms in my applciation that reference a specific icon
> files in my application under the path of my MDE. My code works fine if
> the location doesn't change (ie C:\appname). But if the user has to
> place the "MDE" in some other location (S:\appname) my code will not
> work. What is the best way to handle this?
fldennis@gmail.com - 31 Jan 2005 16:17 GMT
Thank you for your prompt reply.

I need to convert "CurrentProject.Path"  to a string so that I can use
it in other code, what is the best way to do that?
visdev1 - 31 Jan 2005 21:37 GMT
Dim x As String
x = CurrentProject.Path
' or like how AlCamp shows
x = CurrentProject.path & "\YourIcon.ico"

> Thank you for your prompt reply.
>
> I need to convert "CurrentProject.Path"  to a string so that I can use
> it in other code, what is the best way to do that?
 
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.