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?