Code Examples

Edit Hyperlink Text


Use this example to edit the hyperlink text. This example assumes that you have a text field called txtHyperlink and that the code is behind a command button called cmdHyperText. It also ensures that the cursor is always at the start of the field.

'***************** Code Start *******************
'Code by Terry Wickenden

Private Sub cmdHyperText_Click()
    DoCmd.RunCommand acCmdHyperlinkDisplayText
    Me.txtHyperlink.SelStart = 0
End Sub

'****************** Code End ********************

© 1998 - 2011 Terry Wickenden TKW Design Site developed, maintained and hosted by TKW Design. This site is best viewed at 1024 x 768. Optimised for Firefox.