INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

Hyperlink not a hyperlink?

Hyperlink not a hyperlink?

(OP)
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?

RE: Hyperlink not a hyperlink?

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."

RE: Hyperlink not a hyperlink?

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

RE: Hyperlink not a hyperlink?

(OP)
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!

RE: Hyperlink not a hyperlink?

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.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close