Need Assistance, Please tell me where am I making a mistake, If There is no data in the field
Private Sub Image94_Click()
If Dir(PurAtt2.Text) <> "" And PurAtt2.Text <> "" Then
Application.FollowHyperlink PurAtt2
Else
MsgBox ("No Document Attached."), vbExclamation
End If
End Subb
When I click on the image No 2 on the Form I am Getting the following error
COMPILE ERROR:
METHOD OR DATA MEMBER NOT FOUND
On the Form if I click on image No 1 I dont get error.
for which I am using the following code
Private Sub Image97_Click()
If Dir(PurAtt1.Text) <> "" And PurAtt1.Text <> "" Then
Application.FollowHyperlink PurAtt1
Else
MsgBox ("No Document Attached."), vbExclamation
End If
End Sub