Hi Earl,
Use an Image control to display the photo, and place code like the following
in the Current event of the form. This assumes that the path/filename of
the image file
is in a textbox control named txtImageFile, bound to the table field where
the path/filename is stored. I use the same code in the AfterUpdate event
of the textbox to update the picture if the path/filename is changed.
If Not IsNull(Me.txtImageFile) Then
Me.imgImage.Picture = Me.txtImageFile
Else
Me.imgImage.Picture = ""
End If
If you don't want to have the image filename visible on your form, you can
hide the textbox control, or simply refer to the field in the code, rather
than to the control holding the field's content; in that case, the first
line would be:
If Not IsNull(Me!ImageFieldName) Then
And another tip - if you set the Size Mode of the image control (it's on
the Format tab in the Properties dialog) to Zoom, your image will resize to
fit the control, and retain its aspect ratio.
Finally, to prevent possible crashes when scrolling through records, you
should incorporate the registry changes described here:
http://www.mvps.org/access/api/api0038.htm
HTH,
Rob