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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hyperlink won't open

Status
Not open for further replies.

rccline

Technical User
Jun 13, 2002
341
US
I have a field defined as a hyperlink datatype in my table.
E.g.:

c:\1233.pdf

I can open the pdf document 1233.pdf in explorer, so the UNC is correct. But if I click on the hyperlink in the table, query or form, nothing happens.

Can someone advise what is wrong?

Thanks.

Robert

 
I just installed Access 2007. It must have something to do with the "trust center." I'd like to cut off all of the security features.
 
No. It is not fixed. I am at a loss for a solution.
 
Unfortunately I'm not using 07 so I can't troubleshoot. Have you tried bypassing the GUI and instead ued the follow hyperlink method in VB?
 
No. I just have the hyperlink showing in the text box.

Something like this?

On click event...
Public Function PDF()
Forms!InputForm!LblPDF.Hyperlink.Follow
End Funciton.
 
I have named the field txtImage. It appears in a textbox on my form with the correct path.

I have created a command button with the following code::

Code:
Private Sub CMD_OpenPDF0_Click()
   Forms!Form1.txtImage.Hyperlink.Follow
End Sub

Nothing happens.

Any suggestions?

Thanks.

Robert
 
If I try the following, I get an error The expression 'On Click' produced the error: "Procedure declaration does not match descrption of event or procedure having the same name."


Code:
Private Function CMD_OpenPDF0_Click()
Dim Address As String, Subaddress As String

   Address = HyperlinkPart(Forms!Form1.txtImage, acAddress)
   On Error Resume Next

FollowHyperlink Address

End Function

At least there was some response, even if it was wrong.

Any suggestions?

Thanks.

Robert
 
Drop this procedure and recreate it from the ellipsis (...) in the property sheet of the button.

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Thanks PH. But, that's what I did.

I still get the message that there is an error evalutiaong the function.

Code:
Private Sub Command9_Click()
Dim Address As String, Subaddress As String

Address = HyperlinkPart(Forms!Form1.txtImage, acAddress)
On Error Resume Next
FollowHyperlink Address

End Sub

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top