file path to ole linked objects

G

Guest

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?
 
G

Guest

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top