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!

Hyperlink not a hyperlink?

Status
Not open for further replies.

SBCUser666

Technical User
Mar 7, 2008
7
US
Form field (Text66) defined as Hyperlink.
Access 2003 table field defined as Hyperlink.
Using VBA I build the hyperlink and poke it into the form field. The field displays like it is a hyperlink (blue and underlined) but clicking on it does nothing. If I open the table and click on the field nothing happens. On the form, if I delete and retype just 1 character the hyperlink functions correctly (on the form and from the table). Thinking that setting the form field = to a text string somehow removed the hyperlink attribute I then did a Me.Text66.IsHyperlink = True to hopefully force the hyperlink function. No joy.

Ideas?
 
Just for the record, IsHyperlink RETURNS a value, it can't set one.

"Business conventions are important because they demonstrate how many people a company can operate without."
 
When you create the hyperlink, are you setting the TextToDisplay value in Hyperlink.Add field? I'm guessing that by modifying the text later you are basically overwriting the hyperlink you created, not modifying it.

- flub
 
Turns out I have to encapsulate the text I am putting into field Text66 with # signs.

Text66 = "\\server\folder\file.doc" is not correct.

Text66 = "#" & "\\server\folder\file.doc" & "#" is correct.
The # are not in the database but it works now!
 
There are a number of problems with hyperlinks, which is why I generally prefer to use a straight text field and Followhyperlink in a suitable form event.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top