FollowHyperLink Not Working for Network Files

  • Thread starter Thread starter XMan
  • Start date Start date
X

XMan

I use Application.FollowHyperLink command to open up documents either on
local or network disk.

It works only when document is on local drive.
No go for network drive.

Am I missing something here? TIA.
 
I am not sure why you are experiencing this but I create all hyperlinks
using the UNC. \\Desktop\file.doc, etc. this way My application works from
any location on the network. (I build multi-User apps.)
HTH
 
This is Access2002 app running on local machine.
I'm using "Application.FollowHyperlink" to open a document on network drive:
\\luna\data1\shared\Customers.doc

Is this the right syntax?
 
Found a way to execute the document on network drives.

Private Declare Function ShellExecute Lib "shell32.dll" _
Alias "ShellExecuteA" (ByVal hWnd As Long, _
ByVal lOperation As String, _
ByVal lpFile As String, _
ByVal lpParameters As String, _
ByVal lpDirectory As String, _
ByVal nShowCmd As Long) As Long

ShellExecute 0, "open", Me.txtHyperlink, vbNullString, vbNullString,
vbNormalFocus
 
Back
Top