F
Freeda
Hi
I followed the code done in this post but I'm getting an error message... I
did the following:
1) Added a field in my table, text field, where I placed the filename of my
jpg
2) Added an unbound object frame on my form to display the jpg image and
added the "on click" code below
3) On the form where I placed my unbound object frame, I added the "on
current" code below.
4) Changed the path_name to where I stored my jpg images
Please help...
The simplest way to open just about any document in its default program
is to use something like this:
Application.FollowHyperlink Me.Path_Name & Me.Photo_Name & ".jpg"
I followed the code done in this post but I'm getting an error message... I
did the following:
1) Added a field in my table, text field, where I placed the filename of my
jpg
2) Added an unbound object frame on my form to display the jpg image and
added the "on click" code below
3) On the form where I placed my unbound object frame, I added the "on
current" code below.
4) Changed the path_name to where I stored my jpg images
Please help...
The simplest way to open just about any document in its default program
is to use something like this:
Application.FollowHyperlink Me.Path_Name & Me.Photo_Name & ".jpg"
In a form I am pulling photos using the following code.
Private Sub Form_Current()
Dim Path_Name As String
Path_Name = "P:\PR40362\Database Photos\"
On Error Resume Next
imgPicture1.Visible = True
imgPicture1.Picture = [Path_Name] & [Photo_Name] & ".jpg"
'Error message to display if photo not defined
If Err = 2220 Then
imgPicture1.Visible = False
Exit Sub
End If
End Sub
where Photo_Name is a column in the necessary table. Therefore each record
pulls a new photo. What I would like to do is "On Click" have this image act
like a hyperlink and open the image in Microsoft Picture Manager (or whatever
the defualt photo editor is set to). Thanks in advance for any help or
suggestions,
Cioffredi