returns a runtime error 2046 Edit hyperlink isn't available now.
The following is provides a little details
I have a form with a subform with the following Sub routine
Which works well, however. I have a like database and I want to use the same forms but just change the record source through code which also works.
Expand|Select|Wrap|Line Numbers
- Public Sub ATTACHMENTS_DblClick(Cancel As Integer)
- On Error GoTo error_fileclick
- If IsNull(Me.ATTACHMENTS.Value) Then
- DoCmd.RunCommand acCmdEditHyperlink
- Else
- DoCmd.RunCommand acCmdOpenHyperlink
- End If
- Exit_FileLink:
- Exit Sub
- error_fileclick:
- MsgBox "No file has been linked."
- Resume Exit_FileLink
- Exit Sub