Chrstine Pearce
Registered User.
- Local time
- Today, 14:05
- Joined
- Oct 20, 2003
- Messages
- 12
I table has a field called Attachment, formatted as a Hyperlink.
The field appears on my form with an On Click Event Procedure.
Private Sub Attachment_Click()
If IsNull(Attachment) Then
DoCmd.RunCommand acCmdInsertHyperlink
Else
DoCmd.RunCommand acCmdOpenHyperlink
End If
End Sub
When the Else bit happens, the hyperlink opens just fine, but when you close the hyperlinked document application, the following message appears:
Unable to open ../<document path and name>. The hyperlink cannot be followed to the destination
Why does this happen, and what can be done to be rid of it?
Many thanks,
Christine
The field appears on my form with an On Click Event Procedure.
Private Sub Attachment_Click()
If IsNull(Attachment) Then
DoCmd.RunCommand acCmdInsertHyperlink
Else
DoCmd.RunCommand acCmdOpenHyperlink
End If
End Sub
When the Else bit happens, the hyperlink opens just fine, but when you close the hyperlinked document application, the following message appears:
Unable to open ../<document path and name>. The hyperlink cannot be followed to the destination
Why does this happen, and what can be done to be rid of it?
Many thanks,
Christine