Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Need help with linked pictures in run-time application.

0 views
Skip to first unread message

Aaron Huizinga

unread,
May 13, 2002, 8:18:18 PM5/13/02
to
I have a database with is developed in access 2002, inside I have some forms
which many have the same back group image displayed.
I have chosen to Link the images to the forms rather than embedding the
images because they are all the same and embedding would increase my
database size.
I then use the packaging wizard to create a installation program to
distribute the application. and I include all the pictures required to be
displayed into the package.
I then create the installation package without any problems and I'm able to
install it again without any problems.
But when I go and run the application and open any of the forms which should
have the pictures displayed. they aren't.
Now I should also let you know some things about my application.
The path where it is developed is: C:\DATABASE\FORMS\
the path where the pictures are stored prior to packaging:
C:\DATABASE\FORMS\PICTURES\
The path where the application is defaulted to install: C:\PROGRAM
FILES\.......DATABASE\
The path where the application pictures is defaulted to install: C:\PROGRAM
FILES\.......DATABASE\PICTURES

I know there is a problem in that the packaged version is still trying to
load images from the developing path. And I could fix the by simply copying
the developed database to the default location where it will be installed
and re-map all the forms images. But this doesn't help me if say the end
user decides to install the application somewhere else. Say on the D drive?
So how do I set the forms image path to look where the database file is
stored and just check the pictures folder inside that folder?
I tried typing "(Apppath)\pictures\pic1.jpg" in the path for one of the
forms by it didn't work.

Any thoughts or advice on this would be greatly appreciated.


Tony Toews

unread,
May 18, 2002, 6:37:14 PM5/18/02
to
"Aaron Huizinga" <aa...@lindgrenautomation.com> wrote:

>I have chosen to Link the images

>I know there is a problem in that the packaged version is still trying to
>load images from the developing path. And I could fix the by simply copying
>the developed database to the default location where it will be installed
>and re-map all the forms images. But this doesn't help me if say the end
>user decides to install the application somewhere else. Say on the D drive?
>So how do I set the forms image path to look where the database file is
>stored and just check the pictures folder inside that folder?

The long solution would be to get the current app path using
currentdb.name and use that variable in the OnOpen event of each
form/report to load the images.

Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm

Aaron Huizinga

unread,
May 22, 2002, 9:16:56 AM5/22/02
to
Is there a short solution to this problem?

"Tony Toews" <tto...@telusplanet.net> wrote in message
news:1bedeuge5tlcekffh...@4ax.com...

Tony Toews

unread,
May 22, 2002, 11:03:12 PM5/22/02
to
"Aaron Huizinga" <aa...@lindgrenautomation.com> wrote:

>Is there a short solution to this problem?

I was hoping someone else would jump in. Sorry.

anup

unread,
Jun 7, 2002, 11:18:43 PM6/7/02
to
In the form properties give the path to linked pictures as
C:\Program files\My folder(make sure your pics are in this
folder)
While packaging give install location for the pics as:
$program files\My folder
With the above-even if the user changes the location of
install during setup-the pics will be installed into
c:\programs\my folder

HTH
anup

>.
>

0 new messages