Hyperlink.TextToDisplay property (Access)

Use the TextToDisplay property to specify or determine the display text for a hyperlink. Read/write String.

Syntax

expression.TextToDisplay

expression A variable that represents a Hyperlink object.

Example

The following example displays the words "Go to Home page" as an active hyperlink in the label named Label20 on the Suppliers form. Choosing the hyperlink takes the user to the address specified in the label's HyperlinkAddress property.

Forms.Item("Suppliers").Controls.Item("Label20").Hyperlink. _ 
 TextToDisplay = "Go to Home page"

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.