include picture in form

  • Thread starter Thread starter Joseph
  • Start date Start date
J

Joseph

Hi,

I'm trying to include a picture (thumbnail) into a form i have which
is dependent on the name of certain field. This directory has about
30,000 jpg thumbnail sized pictures. I want to programmatically include
the picture on the form based on a name field. Can anyone assist me on
this i would greatly appreciate it.
 
Joseph said:
Hi,

I'm trying to include a picture (thumbnail) into a form i have which
is dependent on the name of certain field. This directory has about
30,000 jpg thumbnail sized pictures. I want to programmatically include
the picture on the form based on a name field. Can anyone assist me on
this i would greatly appreciate it.


You need an unbound ImageFrameontrol on your form, which will hold the
photo.

In the ONCurrent event use the following:
Me![ImageFrame].Picture = "C:\ThisFolder\" & Me![NameField]& ".tiff"

This presumes that all photos are in the same folder. You can change the
tiff to jpg if they are in this format. They must all be in the same format!

Hope this helps,

Jeff C.
 
Back
Top