Use an ImageFrame on the form, store images in a folder, and use the
following code:
Private Sub Form_Current()
' Display the picture for the current employee record if the image
' exists. If the file name no longer exists or the file name was blank
' for the current employee, set the errormsg label caption to the
' appropriate message.
Dim res As Boolean
Dim fName As String
Path = CurrentProject.Path & "\Employee Photos"
On Error Resume Next
errormsg.Visible = False
If Not IsNull(Me!Photo) Then
res = IsRelative(Me!Photo)
fName = Me![ImagePath]
If (res = True) Then
fName = Path & "\" & fName
End If
Me![ImageFrame].Picture = fName
showImageFrame
Me.PaintPalette = Me![ImageFrame].ObjectPalette
If (Me![ImageFrame].Picture <> fName) Then
hideImageFrame
errormsg.Caption = "Picture not found"
errormsg.Visible = True
End If
Else
hideImageFrame
errormsg.Caption = "Click Add/Change to" & vbCrLf & " insert
Employee's photo"
errormsg.Visible = True
End If
Me.lblDisplayLastName.Caption = Me.LastName
Me.lblDisplayFirstName.Caption = Me.FirstName
End Sub
--
Tony D'Ambra
Web Site: aadconsulting.com
Web Blog: accessextra.net
<th***********@gmail.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
Hello all.
I hope someone can help me here. I need to make a db on many pictures,
however, if I OLE them, the access database grows hugely. If I only
hyperlink them, I can't view them. is there a way how I can hyperlink
the pictures and have something like thumbnails to view them in a form?
any comment apprecciated. thanks