Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / General 2 / May 2007

Tip: Looking for answers? Try searching our database.

file path to ole linked objects

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Leslie - 07 May 2007 19:01 GMT
I have a table that stores employee pictures.  The pictures were embeded and
I would like them to be linked.  Database will not be moved so I'm not
worried about the folder moving and having to re-map the objects.  Because I
have chosen to link to the object, I must go into the table and set the
location.  The field does not show path information and I would like to add
this information without having to go thru every record.  Does anyone know of
any options available to set the location of linked objects for the entire
database?
Signature

Leslie

John B. Smotherman - 31 May 2007 21:32 GMT
Leslie-

If you're still looking for help with this one, I've done something very
similar to this. I have a table with a field called "FileName" that contains
only the names of the image files. There's an additional field called
"PathToFile" which is a combobox that looks up the path name in a join table.
To display the images, use VBA similar to the following:

   strImagePathName = DLookup("PathName", _
       "jtbImagePath", "PathID = " & Me!PathNameCombo) '   lookup the path
for where the image file is stored
   FormName.ImageLabel.Visible = True                              'show
the thumbnail label,
   FormName.Image.Visible = True                                   'show
the thumbnail preview box,
   FormName.Image.Picture = strImagePathName & FormName!FileName   'and
fill the picture attribute of the thumbnail preview box

This shows the image in a small control I have setup as a thumbnail preview,
but Access takes care of sizing the image to fit. Make it as large or as
small as you like.

HTH

> I have a table that stores employee pictures.  The pictures were embeded and
> I would like them to be linked.  Database will not be moved so I'm not
[quoted text clipped - 4 lines]
> any options available to set the location of linked objects for the entire
> database?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.