A family of Microsoft relational database management systems designed for ease of use.
I have tried to go back and figure out how the code shold be written and this is what I cam up with using the entire code and only changing the lines that were modified.
Private Sub OpenImageBtn\_DblClick(Cancel As Integer)
Dim strFile as String
strFile1 = "D:\Documents\Family Tree Maker\Wright-Jagoe Media\" & Me.DigitFileName1
strFile2 = "D:\Documents\Family Tree Maker\Laidlaw-Fowler Media\" & Me.DigitFileName2
If DIR(strFile1) = "" OR DIR(strFile2) = "" Then
MsgBox "File does not exist!"
Else
Application.FollowHyperlink strFile
End If
End Sub
I changed the path in strFile2 to reflect the second file where images are stored.
When I tried to use the Open Image Button, I got the following error message:
Compile error:
Method or Datat member not found