Label.Hyperlink Property
Access Developer Reference |
You can use the Hyperlink property to return a reference to a Hyperlink object. You can use the Hyperlink property to access the properties and methods of a control's hyperlink. Read-only.
Syntax
expression.Hyperlink
expression A variable that represents a Label object.
Example
The CreateHyperlink procedure in the following example sets the hyperlink properties for a command button, label, or image control to the address and subaddress values passed to the procedure. The address setting is an optional argument, because a hyperlink to an object in the current database uses only the subaddress setting, To try this example, create a form with two text box controls (txtAddress
and txtSubAddress
) and a command button (cmdFollowLink
) and paste the following into the Declarations section of the form's module:
Visual Basic for Applications |
---|
|