Do not use the hyperlink data type. Change it to a standard text field. In the click event (or preferably the double-click event) use the FollowHyperLink method. This command recognizes any valid file extension, url, or email address and opens the appropriate application.
On the form, the Hyperlink property simply specifies how the control will be displayed. It doesn't do anything else. You must add your own code to open the document.
I suggested the double-click event because even though you want it to act like a hyperlink, if you use the single click, you won't be able to actually edit the value easily because trying to click into the control will cause the hyperlink to be activated. If you can train your users to always use the tab key to move from control to control, you would be able to get focus into the control and start typing but you still could never click into the center to change a couple of characters.
SteveL13
ASKER
I'll use double-click but I don't know how to code it.
The value is incorrect. It needs to be either what is to the left of the # or what is to the right. The security message is caused by your macro settings.
SteveL13
ASKER
I found the mistake in the table field value. Once I fixed it all is fine. Thanks.