Scott,
I see what you were getting at, just didn't know how to do it. this is what I entered:
Private Sub OpenImageBtn_DblClick(Cancel As Integer) {THIS LINE TURNED YELLOW}
Dim strFile1 As String, strFile2 As String, strFile As String
strFile1 = "D:\Documents\Family Tree Maker\Wright-Jagoe Media" & Me.digitialfilename {THE .digitalfilename TURNED BLUE}
strFile2 = "D:\Documents\Family Tree Maker\Laidlaw-WL Media" & Me.DigitalFileName
If Dir(strFile1) <> "" Then
strFile = strFile1
Else IF DIR(strFile2) <> "" Then {THIS LINE TURNED RED}
strFile = strFile2
Else
MsgBox "File not found"
Exit Sub
End If
Application.FollowHyperlink strFile
End Sub
I capitalized the DigitalFileName in strFile1 and the Blue went away. However when I Dbl clicked the Open Imabe Btn it did not open the selected image. I must have done something wrong.
Lastly, you asked why I didn't store the full path with the file name. Only because I have a couple of thousand files in each of the two directories and couldn't figure out how to copy the path so I could paste it into my data entry form. If there is an efficient way to do it, I would go back and use the full path.
Walt