Hyperlink or Attachment

Wayne

Crazy Canuck
Local time
Yesterday, 22:54
Joined
Nov 4, 2012
Messages
176
I read a reply to a thread by Doc Man about this. I set up a subform to enter the file path for stored documents relating to a job on the main form (as opposed to an attachments field). Should the field be set up as a hyperlink, and what code would you use to open the file to view it? The files are pdf documents. Any help would be appreciated.

The thread was:

https://access-programmers.co.uk/forums/showthread.php?t=292777&highlight=attachments
 
if he field is hyperlink, no code needed to navigate to the link.
if plain text, you use:


FollowHyperLink [fieldname]


it would be better to use it on DoubleClick Event of the control.
 
The Hyperlink datatype is valid for ACE (.accdb) but it is not upsizable to SQL Server so the FollowHyperlink method suggested by arnelgp is preferable.
 
Any thoughts on the best place to put that code to follow the hyperlink?
 
arnelgp already suggested the double click event of the control
 

Users who are viewing this thread

Back
Top Bottom