Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

URL use Access 2010

Status
Not open for further replies.

fileman1

Technical User
Feb 7, 2013
152
GB
Hi, I have a form with a text box which is bound to a table with the field set as Hyperlink.

I can type in and it looks blue, and I can save the record. However when I open the record, if I click my mouse on the hyperlink address it does nothing except either copy the address to one side of the text box having hash characters at each end. However I found if I right click the address, options come up to edit and open the Hyperlink, it then opens Google.

What am I doing wrong? Should I have a command button with code to say open?
 
Managed to find some very simple code which works a treat

Code:
Private Sub cmd_Click()

    Dim ctl As CommandButton

    Set ctl = Me!CMD

    With ctl

        .HyperlinkAddress = "[URL unfurl="true"]http://"[/URL] & Me!UR1
 
    End With

End Sub

Hope it works for someone else too.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top