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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Relative path for form or app icons

Status
Not open for further replies.

labanTek

Instructor
Dec 3, 2004
37
Hello all I have a MS Access app running off a cd I would like to know if it is possible to do the following:
(1) set a relative path for the form icon because the icons set for forms and reports seems to only work with absolute paths to the icon image and if I try the cd on another drive that is not e.g D: then the icon is no longer found.
(2) set a relative path for the shortcut to the app that is on the cd because if the shortcut points to e.g. D:\myApp.mdb and I try the cd in another cd drive that is probably set to another drive letter e.g. E:\ the shortcut will no longer work.
Any help will be appreciated.
Thanks in advance.
 
I am not entirely sure but if you leave the drive letter off of the path, the DB should assume that it is seeing the root directory of the CD.
 
I've tried that but MS Access only accepts absolute paths as far as I know when setting the path to the icon images.
 
The only other way that I can think of would be to have a pop-up form come up first to ask what drive your CD is and store it in a global variable and add it to the path at run time.
Hope this helps.
 
Unfortunately in order to open this pop up form the database have to be accessed before using the shortcut on the cd to the app that is also on the cd. if the shortcut points to an invalid cd drive letter then that method still won't work.
Thanks for your help though jklo
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top