I have a combo box that on the after update event I pu together a string for a hyperlink
i write that string to label caption and then write that string to the subaddress of the label
the string location is correct because i can click the start button and paste the string there and it will launch the pdf as will the run box (remember that on)
But when I click the hyperlink on the label I receive the following message:
mydatabe cannot follow the hyperlink mystring
Please verify the desination
the string is valid and here is the code
Private Sub List344_AfterUpdate()
Dim strlocation As String
Dim strfolder As String
strfolder = DLookup("[userdefinedfield1]", "tblsystemadmin", "cmselement='safety profile'")
strlocation = strfolder & "\" & List344 & ".pdf"
lblHyperlink.Caption = strlocation
lblHyperlink.HyperlinkSubAddress = strlocation
End Sub
any help would be so greatly appreciated
i write that string to label caption and then write that string to the subaddress of the label
the string location is correct because i can click the start button and paste the string there and it will launch the pdf as will the run box (remember that on)
But when I click the hyperlink on the label I receive the following message:
mydatabe cannot follow the hyperlink mystring
Please verify the desination
the string is valid and here is the code
Private Sub List344_AfterUpdate()
Dim strlocation As String
Dim strfolder As String
strfolder = DLookup("[userdefinedfield1]", "tblsystemadmin", "cmselement='safety profile'")
strlocation = strfolder & "\" & List344 & ".pdf"
lblHyperlink.Caption = strlocation
lblHyperlink.HyperlinkSubAddress = strlocation
End Sub
any help would be so greatly appreciated