Hi,
- The FollowHyperlink method has nothing to do with the VBA References. So, this is not the reason for the error.
- Your posted code is missing a backslash after "Documents" which would result in an uncorrect path and would lead to error 490 "Cannot open the specified file.". As you state a different message and that it works on your PC, the missing backslash might be a mistake in the post here. Nevertheless you should check the correctness of the resulting path with a MsgBox or Debug.Print.
- Are you sure that the error is coming from Access/VBA? If yes, what's the error number you get?
If no, then the program that FollowHyperlink is trying to launch to read the PDF might be a problem or might have a problem with the file. Is it a standard PDF or any particular advanced type of PDF?
Servus
Karl
Access Forever
Access News
Access DevCon
Access-Entwickler-Konferenz AEK