Results 1 to 2 of 2
  1. #1
    urbanhawk is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2014
    Posts
    3

    Showing the file paths for attachments in a report


    My company wants to store both a digital copy and a hard paper copy of the files in the access database. Because of this I need to figure out a way to show in the reports the paths to the attached files so that people reading the paper versions can locate the corresponding files on the computer in the future. I have been searching the internet for several hours and have come up with nothing. Is there a way to do this?

  2. #2
    NTC is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2009
    Posts
    2,392
    Are you using the hyperlink field type? If so: hyperlinks consist of 4 different parts. Each part is separated by a # sign. Access does not display all parts. The first part is the display name, then a # sign, then the actual hyperlink address, then another # sign, etc.

    If a display name is entered, that's what is displayed to the user. If not, the address is displayed. In either case, the address determines the actual link.

    Access has a full description of the parts under "About Hyperlinks" in Help. You may also want to look at the hyperlinkpart() function (I'm pretty sure that is the name of it). That function can be used in queries to pull just one part of a hyperlink field. It can be useful sometimes.

    One other option you may want to consider. You can just enter the address in a regular text field (without the # signs), and use DoCmd.FollowHyperlink in VBA to open the file when clicked.

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

Similar Threads

  1. $ Showing in TXT file but not in query
    By tcheck in forum Access
    Replies: 4
    Last Post: 11-13-2012, 12:33 PM
  2. Attachments with file name
    By JayX in forum Forms
    Replies: 1
    Last Post: 03-06-2012, 03:08 PM
  3. Retrieve images stored as file paths in Access
    By Nonz in forum Programming
    Replies: 4
    Last Post: 09-26-2011, 06:46 PM
  4. Exporting Attachments to an external file
    By springa in forum Import/Export Data
    Replies: 3
    Last Post: 07-17-2011, 05:33 AM
  5. Replies: 1
    Last Post: 05-17-2011, 06:26 PM

Tags for this Thread

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