Page 1 of 2 12 LastLast
Results 1 to 15 of 19
  1. #1
    Macon is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Dec 2013
    Posts
    8

    Moving links when saving project to an external hard drive.


    I created a database with 3,000 entries. Each entry is linked to a PDF file in a Source Folder. When I move the database and source folder to an external harddrive to deliver to the client, the links still want to link my server rather than the new location on the external hard drive. Does any one know how to fix this without relinking every single file?

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2013
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Are the PDF's on a SubFolder of where your db resides? If so, you should be able to use CurrentProject.Path to locate them.
    CurrentProject & "\YourFolder\YourDoc.pdf"

  3. #3
    Macon is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Dec 2013
    Posts
    8
    There is an overall folder project folder that I moved from my server to an external hard drive. Inside the overall folder is the database and the Source File folder. When I click on the link in the database, it tries to link to the server location rather than the source file folder that is now on the hard drive. I'm not clear what you mean by use currentproject.path.

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2013
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Within your program, how are you referencing the pdf's?

  5. #5
    Macon is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Dec 2013
    Posts
    8
    To create the link in the database, I right clicked, went to hyperlink, edit hyperlink, then click on the file I wanted. It ends up looking like this in the database:
    E:\LFO RMP AR\Source Files\BLM-0003.pdf I tried removing the E:\ manually, but it still links to the E drive.

  6. #6
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2013
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Are you using a Form to "click on a link" or just opening the tables directly and clicking on a field?

  7. #7
    Macon is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Dec 2013
    Posts
    8
    It's the same in either place. In the form or in the table. It shows a link to the server drive. It doesn't change when I copy it over to an outside drive.

  8. #8
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2013
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    It sounds like you have saved the complete path in the table. You should have just saved the filename in the table and supply the path with code.

  9. #9
    Macon is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Dec 2013
    Posts
    8
    Is there somewhere I can get instuctions on how to enter the path with code?

  10. #10
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2013
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    I'm sorry but I took a break. I'd be glad to help. What view is your form in when you shown the records?

  11. #11
    Macon is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Dec 2013
    Posts
    8
    Quote Originally Posted by RuralGuy View Post
    I'm sorry but I took a break. I'd be glad to help. What view is your form in when you shown the records?
    It's in a data entry form that we created, but also shows up in the table. I pasted a copy below from the table.
    Document
    Subfolder ElectronicLocation Volume
    E:\LFO RMP AR\Source Files\BLM-0001.pdf

  12. #12
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2013
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    What is the FieldType of the field that holds the location? If you just click on it it is probably a hyperlink field.

  13. #13
    Macon is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Dec 2013
    Posts
    8
    Yes, it is a yperlink field.

  14. #14
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2013
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Here's what you can do thru automation: convert the field to just the FileName. Add a click event to the display control that will open the file if it located in .\YourFolder. Will that work for you? You could also add code that would allow the Folder to be anywhere you want it to be.

  15. #15
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2013
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Is that what you want to do, or would you rather do something else?

Page 1 of 2 12 LastLast
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 1
    Last Post: 05-29-2013, 03:08 PM
  2. Hard Question
    By chivo123 in forum Access
    Replies: 4
    Last Post: 01-20-2012, 10:44 AM
  3. View .txt file on hard drive
    By nfaunt in forum Programming
    Replies: 0
    Last Post: 04-04-2011, 09:49 AM
  4. Replies: 10
    Last Post: 11-09-2010, 03:34 PM
  5. Hard Returns v. Squares
    By Goodge12 in forum Queries
    Replies: 3
    Last Post: 01-28-2009, 10:10 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