From: Duck on
I am creating a client database in which I want to also store client
photos. The photos are stored in a subfolder of the folder in which
the database is created. How can I indicate in my VBA code which
populates the unbound image frame, the relative location of the
photos
folder (relative to folder in which the database is created). I want
to be able to move the database to a different folder on different
computers.
From: Dennis on
CurrentProject.Path will give you what you want

"Duck" wrote:

> I am creating a client database in which I want to also store client
> photos. The photos are stored in a subfolder of the folder in which
> the database is created. How can I indicate in my VBA code which
> populates the unbound image frame, the relative location of the
> photos
> folder (relative to folder in which the database is created). I want
> to be able to move the database to a different folder on different
> computers.
>
From: Linq Adams via AccessMonster.com on
CurrentProject.Path

will give you the location of the database. I use this code to archive
reports using snapshots of them. They're located in a subfolder of the folder
holding the database. You can use the same technique for your photos.

'Path to sub-folder for report archives...sets up Archive folder if itr
doesn't exist
mypath = CurrentProject.Path & "\Archive"
'If directory doesn't exist creates it
If Dir(mypath, vbDirectory) = "" Then MkDir mypath

--
There's ALWAYS more than one way to skin a cat!

Answers/posts based on Access 2000/2003

Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/Forums.aspx/access/200807/1

From: a a r o n . k e m p f on
keep your data in SQL Server and you won't have problems like this
you could always say 'select * from sysfiles'





On Jul 4, 6:17 am, Duck <charles.kendri...(a)charter.net> wrote:
> I am creating a client database in which I want to also store client
> photos.  The photos are stored in a subfolder of the folder in which
> the database is created.  How can I indicate in my VBA code which
> populates the unbound image frame, the relative location of the
> photos
> folder (relative to folder in which the database is created).  I want
> to be able to move the database to a different folder on different
> computers.

From: So Sorry For Poor Aaron on
"a a r o n . k e m p f @ g m a i l . c o" wrote:

> keep your data in SQL Server

Him jailbird, don know nuttin else, don know how, neither, dumb as dry dirt.