Results 1 to 9 of 9
  1. #1
    Join Date
    Jul 2022
    Posts
    7

    How to create hyperlink to file in a report?

    Hi,



    I have a report that also lists the file location, what I want to to is when you click the hyperlink it opens up the excel file. All the file locations will be different in each line, I just can't figure out how to link to them, any help would be much appreciated!

    Click image for larger version. 

Name:	Picture.png 
Views:	12 
Size:	49.5 KB 
ID:	48267

  2. #2
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,430
    in your example all the file locations look the same to me but in principle, use a hyperlink control - should work in report view

    should happen automatically when you create the report if your table stores the location as a hyperlink rather than text

  3. #3
    Join Date
    Jul 2022
    Posts
    7
    Thanks for your reply, really sorry but how would you do "hyperlink control"? In properties of the text box I have "is hyperlink" if I set this to yes it formats it to blue with underline and is clickable but doesn't do anything?

  4. #4
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,430
    what view are you using? - needs to be report view, not preview

    I just created a report based on a table that contains a hyperlink field and it worked fine.

    Alternatively, insert a hyperlink control from the ribbon and set the controlsource to the name of your path. If it works, delete the original control

    I'm using 2010, it may be in 2016 you have to do something like right click

  5. #5
    Join Date
    Jul 2022
    Posts
    7
    I think I know why, my "datasource table" is an realtime excel file rather than a local table, it's pulling in the data as text from it and it wont let me change datatype to hyperlink in the design view of the table. I can't figure out how to format the data in the excel file as a hyperlink instead of text.

  6. #6
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,430
    pretty sure that will be it, in excel you select a cell then go to insert>hyperlink. Other than automation, I don't think you can select a range and convert them all to hyperlinks with individual addresses. Just had a go and it converts the entire column into one hyperlink.

    suggest import the data to either a permanent or temporary table as required

  7. #7
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,430
    other thought - using vba code you can use followhyperlink - see this link

    https://docs.microsoft.com/en-us/off...ollowHyperlink

  8. #8
    Join Date
    Jul 2022
    Posts
    7
    Ok, I think having it as a proper access table will work. The only problem is it possible to convert the linked table to a permanent table automatically every time access is opened to make sure the data is up to date? And then format the data to hyperlink automatically as well.

  9. #9
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,430
    it's possible - either reimport the data in full or use a query to just update changes. Really depends on how much data you are talking about, whether there are deletions and changes as well as additions

    did you see my second post about followhyperlink?

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 5
    Last Post: 11-24-2017, 07:28 AM
  2. Hyperlink file create date
    By markjkubicki in forum Access
    Replies: 1
    Last Post: 05-16-2017, 11:07 AM
  3. Replies: 8
    Last Post: 11-13-2014, 02:41 PM
  4. Creating a hyperlink to open a pdf file
    By Jrw76 in forum Access
    Replies: 10
    Last Post: 01-24-2014, 09:42 AM
  5. Create Hyperlink and send via email
    By tcheck in forum Access
    Replies: 7
    Last Post: 11-20-2012, 06:24 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums