Results 1 to 2 of 2
  1. #1
    skim464 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Apr 2014
    Posts
    1

    Very Newb question on hyperlink

    Hi all

    I am really new to database coding (almost never coded much before)



    I have an access database and I want to hyperlink each cell to a specific file in the hard drive

    011-1234
    021-1234
    211-0011
    231-0001
    311-1101
    411-0401
    461-2101

    My database looks somewhat like that on the first column
    I want to make it so that when I click on the value it opens (like hyperlink) the following file

    C:\01\011-1234.jpeg
    C:\02\021-1234.jpeg
    C:\21\211-0011.jpeg
    C:\31\311-1101.tif
    ... respectively
    first two number is the folder number and the whole value is the name of the file and the modifier will be either jpeg or tif (So probably if it can't find jpeg, it looks for tif)

    Is it hard to code? If you got a bit of time, please help me I am so new to programming and I don't even know how to call the value from the table.

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    One option is FollowHyperlink, and you can build a string:

    "C:\" & Left(FieldName, 2) & "\" & FieldName & ".jpeg"

    You can use Len() with Dir() to test if the file exists, and if not switch to the tif.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Newb Question
    By Jesse_Munos in forum Import/Export Data
    Replies: 11
    Last Post: 05-12-2012, 03:33 PM
  2. Newb question (but possibly complex)
    By MavisCruet in forum Database Design
    Replies: 3
    Last Post: 11-29-2011, 07:16 AM
  3. Newb question
    By blkdragon201 in forum Access
    Replies: 5
    Last Post: 02-03-2011, 02:17 PM
  4. This is probally a newb question
    By tdanko128 in forum Queries
    Replies: 4
    Last Post: 01-30-2011, 12:24 PM
  5. Newb Question
    By smokeyvol in forum Access
    Replies: 0
    Last Post: 01-14-2009, 08:28 AM

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