Hyperlink text box (1 Viewer)

hi there

Registered User.
Local time
Today, 16:09
Joined
Sep 5, 2002
Messages
171
Howdy folks,

i've been working on an application with a hyperlink text box on one of my forms. it is a bound control to a hyperlink field type. in order to get the for the user to enter the file path i've included some code to call the windows common dialog box. this procedure runs when the user clicks on a command button next to the text box. the problem is when i try to push the file path into the text box using the Hyperlink.Address property and the Hyperlink.TextToDisplay property Access tells me that the Hyperlink.Address and Hyperlink.SubAddress properties are read only. if i don't try to use these properties it will push the file path into the TextToDisplay property and that works but the hyperlink doesn't work because it doesn't know where to go. does anyone know what i'm doing wrong or perhaps a work around this problem?

many thanks for all suggestions.
 

SforSoftware

(NL) SnelStart specialist
Local time
Today, 22:09
Joined
Aug 16, 2003
Messages
239
Instead of the hyperlink-property, use the click-event of the textbox:
Code:
Private Sub MyTextbox_Click()
  FollowHyperlink Me!MyTextbox
End Sub
 

Users who are viewing this thread

Top Bottom