[AccessD] Relative path for images

Jim Hewson JHewson at karta.com
Mon Oct 29 08:30:19 CDT 2007


I take this one step further.
I store the name of the image file in a table.  That way I don't have to worry about changing the code to replace the image - all I do is change the field in the table.

I use:
        Images.Picture = Application.CurrentProject.Path & "\images\" & GraphicFile

Images is the name of the image container.

Jim 
jhewson at karta.com
 
-----Original Message-----
From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby
Sent: Monday, October 29, 2007 7:16 AM
To: 'Access Developers discussion and problem solving'
Subject: Re: [AccessD] Relative path for images

Sorry Arthur, that should have been 

currentproject.Path 


John W. Colby
Colby Consulting
www.ColbyConsulting.com 
-----Original Message-----
From: accessd-bounces at databaseadvisors.com
[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby
Sent: Monday, October 29, 2007 8:01 AM
To: 'Access Developers discussion and problem solving'
Subject: Re: [AccessD] Relative path for images

currentapplication.path 


John W. Colby
Colby Consulting
www.ColbyConsulting.com
-----Original Message-----
From: accessd-bounces at databaseadvisors.com
[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller
Sent: Monday, October 29, 2007 7:26 AM
To: Access Developers discussion and problem solving
Subject: [AccessD] Relative path for images

Within my app's directory is a directory called Images, which stores (gasp)
images used by the app, such as logos. I'd like to make the references to
this directory relative to the home directory but I can't make it work. I've
tried various syntaxes without success (i.e. "Images\logo.jpg" and
"..\Images\logo.jpg"). Is there a way to do this?


TIA
Arthur
--
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com

--
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com

-- 
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com




More information about the AccessD mailing list