Hyperlink on Form

S

simplymidori

Hello,

I have a list of hyperlinks in a continious subform. The link has this code

Private Sub Link_Click()

Application.FollowHyperlink Me.Link

End Sub


Link: Format("view#ftp://XXX:[email protected]/spot/" & [Link] & ".wmv")

I have view# as my display text as and when I click on the link I get a
runtime error 490 cannot open the specified file. But, when I click END it
goes to the link.

Am I missing something?

Thanks
 
J

Jeanette Cunningham

simplymidori,
If the textbox called Link has the full path and file name, using
Application.FollowHyperlink Me.Link should open the file.
Here's an example:
I have a file on my computer called MyTestFile.txt
It is in the C drive.
The code
Application.FollowHyperlink "C:\MyTestFile.txt" will open the file

Jeanette Cunningham
 
J

Jeanette Cunningham

See it this info helps
http://www.allenbrowne.com/func-GoHyperlink.html

Jeanette Cunningham

Jeanette Cunningham said:
simplymidori,
If the textbox called Link has the full path and file name, using
Application.FollowHyperlink Me.Link should open the file.
Here's an example:
I have a file on my computer called MyTestFile.txt
It is in the C drive.
The code
Application.FollowHyperlink "C:\MyTestFile.txt" will open the file

Jeanette Cunningham

simplymidori said:
Hello,

I have a list of hyperlinks in a continious subform. The link has this
code

Private Sub Link_Click()

Application.FollowHyperlink Me.Link

End Sub


Link: Format("view#ftp://XXX:[email protected]/spot/" & [Link] &
".wmv")

I have view# as my display text as and when I click on the link I get a
runtime error 490 cannot open the specified file. But, when I click END
it
goes to the link.

Am I missing something?

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top