TextToDisplay Property

Microsoft Access Visual Basic

expression.TextToDisplay

expression    Required. An expression that returns one of the objects in the Applies To list.

Remarks

The TextToDisplay property is a string expression representing the text displayed as a hyperlink.

The TextToDisplay property can be set by using the form's property sheet or Visual Basic.

Example

The following example displays the words "Go to Home page" as an active hyperlink in the label named "Label20" on the "Suppliers" form. Clicking 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"