Results 1 to 5 of 5
  1. #1
    lawdy is offline Competent Performer
    Windows 7 32bit Access 2013
    Join Date
    Jan 2013
    Posts
    172

    More trouble with Hyperlinks


    I asked a question earlier today on hyperlinks and it was answered. Now I am having trouble with the file extension. while -

    strFullFileName = strJobPlansPath & strYear & "" & pubLngProposalNo & ".pdf"
    FollowHyperlink strFullFileName

    works well, I have different file extensions. I have tried -

    strFullFileName = strJobPlansPath & strYear & "" & pubLngProposalNo & ".*"
    FollowHyperlink strFullFileName

    without any success. I have also tried -

    strFullFileName = Dir(strJobPlansPath & strYear & "" & CStr(pubLngProposalNo) & ".*")
    FollowHyperlink strFullFileName

    without any success.
    strJobPlansPath =" L:\aaTS\AAFilesToCopy\Job Plans"
    strYear - "2023"
    pubLngProposalNo = 20231532

    Please help.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Note that your code is not showing \ between quote marks. Either post this code between CODE tags or go to Advanced Editor and uncheck "Automatically parse links in text" so \ will not be dropped and this "" will show as "\". Has to be done with every posting and if you edit a post, do it again.

    Can't use wildcard character. Need a specific full name of file to open.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    lawdy is offline Competent Performer
    Windows 7 32bit Access 2013
    Join Date
    Jan 2013
    Posts
    172
    Ok, what is a code tag?

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Click # icon on post editor toolbar. Copy/Paste or type your code between the CODE tags.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  5. #5
    lawdy is offline Competent Performer
    Windows 7 32bit Access 2013
    Join Date
    Jan 2013
    Posts
    172
    Thanks June7. I will remember that next time.

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

Similar Threads

  1. Hyperlinks
    By cbrsix in forum Reports
    Replies: 1
    Last Post: 12-18-2015, 09:47 AM
  2. hyperlinks
    By sdel_nevo in forum Programming
    Replies: 2
    Last Post: 06-11-2013, 02:34 PM
  3. Hyperlinks (UNC)
    By ccordner in forum Forms
    Replies: 1
    Last Post: 02-01-2012, 02:16 PM
  4. Help with hyperlinks
    By dumbFounded in forum Access
    Replies: 4
    Last Post: 04-26-2011, 01:40 PM
  5. Hyperlinks
    By Issy in forum Access
    Replies: 0
    Last Post: 11-13-2007, 04:46 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