Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Relative hyperlink works on any computer except for one

Status
Not open for further replies.

cpc06

Technical User
Dec 13, 2007
5
GB
I have a command button on a form that looks in a text box for a file name, and uses the code below to open the corresponding PDF:

Private Sub Command82_Click()
Application.FollowHyperlink CurrentProject.Path & "\References\" & Me![PDF Link].Value & ".PDF"
End Sub

I have made it a relative link so that the database and a folder of pdfs can be moved around easily. The problem is that it doesn't work on one of our computers (but it works fine on three or four others). Rather than opening the file, Acrobat opens for a split second and then shuts down. I have even put the database and pdf folder on a CD. The relative link works on my computer but even from the CD, it doesn't work on this particular computer.

Are there some settings (either in Access or Adobe Acrobat) that might prevent the FollowHyperlink application from working?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top