A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Linking graphic files



 
 
Thread Tools Display Modes
  #1  
Old August 2nd, 2009, 11:12 PM posted to microsoft.public.access.tablesdbdesign
Obe
external usenet poster
 
Posts: 13
Default Linking graphic files

I have a large database with linked graphics as part of the records. The
database also has a data access page so users without Access can view the
information (reason for linked graphic files, since Data Access pages can
deal with OLE objects). I need to put the database on a CD, along with the
graphic files, for distribution (it will be run from the CD, not from a hard
drive so I can't have them install the files in the same path as I have
them). As individual computers may have different CD Drive letters, is there
a wild card for the linked file path that can be used instead of refering to
a drive letter? Something like %CD%\{directory name}\{filename.jpg}?
  #2  
Old August 3rd, 2009, 01:31 PM posted to microsoft.public.access.tablesdbdesign
NG[_2_]
external usenet poster
 
Posts: 59
Default Linking graphic files

Hi,

Application.CurrentProject.Path gives you the path of the current database,
you can start from there...
--
Kind regards
Noëlla


"Obe" wrote:

I have a large database with linked graphics as part of the records. The
database also has a data access page so users without Access can view the
information (reason for linked graphic files, since Data Access pages can
deal with OLE objects). I need to put the database on a CD, along with the
graphic files, for distribution (it will be run from the CD, not from a hard
drive so I can't have them install the files in the same path as I have
them). As individual computers may have different CD Drive letters, is there
a wild card for the linked file path that can be used instead of refering to
a drive letter? Something like %CD%\{directory name}\{filename.jpg}?

  #3  
Old August 3rd, 2009, 05:33 PM posted to microsoft.public.access.tablesdbdesign
Obe
external usenet poster
 
Posts: 13
Default Linking graphic files

I was hoping I could get away without writing code, but the more I research
the more I realize that I'm going to have to enter the world of VB to make
this work unless there are any other ideas out there.

I suppose I could use SET CDROM=%CD:~0,2%, and pull the subdirectory and
filename from the table.

"NG" wrote:

Hi,

Application.CurrentProject.Path gives you the path of the current database,
you can start from there...
--
Kind regards
Noëlla


"Obe" wrote:

I have a large database with linked graphics as part of the records. The
database also has a data access page so users without Access can view the
information (reason for linked graphic files, since Data Access pages can
deal with OLE objects). I need to put the database on a CD, along with the
graphic files, for distribution (it will be run from the CD, not from a hard
drive so I can't have them install the files in the same path as I have
them). As individual computers may have different CD Drive letters, is there
a wild card for the linked file path that can be used instead of refering to
a drive letter? Something like %CD%\{directory name}\{filename.jpg}?

  #4  
Old August 3rd, 2009, 08:19 PM posted to microsoft.public.access.tablesdbdesign
Obe
external usenet poster
 
Posts: 13
Default Linking graphic files

On second thought NG, I placed all the graphics in the same directory as the
database and made the directory reference relative. I tested it and it
worked fine. Thanks for the idea, you set me to thinking on the right path
(no pun intended!).

Obe

"NG" wrote:

Hi,

Application.CurrentProject.Path gives you the path of the current database,
you can start from there...
--
Kind regards
Noëlla


"Obe" wrote:

I have a large database with linked graphics as part of the records. The
database also has a data access page so users without Access can view the
information (reason for linked graphic files, since Data Access pages can
deal with OLE objects). I need to put the database on a CD, along with the
graphic files, for distribution (it will be run from the CD, not from a hard
drive so I can't have them install the files in the same path as I have
them). As individual computers may have different CD Drive letters, is there
a wild card for the linked file path that can be used instead of refering to
a drive letter? Something like %CD%\{directory name}\{filename.jpg}?

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 08:45 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.