LJtechnical
Technical User
Hi All,
I have a successful report which lists products in a quotation entered via a form. This report can then be printed automatically to PDF format and hence emailed to customers.
I would really like the report to include hyperlink information to the product information sheets on our website.
Ideally a generic label or image that carries a hyperlink for relevant product.
I have tried to no avail the following in the product detail section of the report OnFormat Event.
Dim hlk As Hyperlink
Dim strAddress As String
If IsNull(Me!Factsheet) Then ' If no hyperlink exists then
Me!LinkLabel.Visible = False
Else ' If hyperlink exists for product then
Me!LinkLabel.Visible = True
strAddress = Me!Factsheet ' strAddress equals the hyperlink
Set hlk = LinkLabel.Hyperlink
With hlk
.TextToDisplay = "Factsheet"
.Address = strAddress
End With
End If
Iget the Label appearing with the Text "Factsheet" displayed but not the associated hyperlink, any ideas?
David
I have a successful report which lists products in a quotation entered via a form. This report can then be printed automatically to PDF format and hence emailed to customers.
I would really like the report to include hyperlink information to the product information sheets on our website.
Ideally a generic label or image that carries a hyperlink for relevant product.
I have tried to no avail the following in the product detail section of the report OnFormat Event.
Dim hlk As Hyperlink
Dim strAddress As String
If IsNull(Me!Factsheet) Then ' If no hyperlink exists then
Me!LinkLabel.Visible = False
Else ' If hyperlink exists for product then
Me!LinkLabel.Visible = True
strAddress = Me!Factsheet ' strAddress equals the hyperlink
Set hlk = LinkLabel.Hyperlink
With hlk
.TextToDisplay = "Factsheet"
.Address = strAddress
End With
End If
Iget the Label appearing with the Text "Factsheet" displayed but not the associated hyperlink, any ideas?
David