UtterAccess.com
X   Site Message
(Message will auto close in 2 seconds)

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Hyperlink Background In Textbox, Office 2010    
 
   
ElbyG
post Mar 7 2011, 10:48 AM
Post #1

New Member
Posts: 9
From: Portland, OR



I have some hyperlinks in textboxes on a form.

When a link is clicked the background of the hyperlink text changes. I would like to disable this behavior; I don't want the appearance on the form to change.

Thanks for your help. ElbyG
Go to the top of the page
 
+
doctor9
post Mar 7 2011, 11:12 AM
Post #2

UtterAccess VIP
Posts: 9,302
From: Wisconsin



ElbyG,

This is an option within Access. According to this Microsoft web page, you need to click the Office button, go to the Advanced tab and click Web Options to set the color for un-clicked and already-clicked weblinks. If you make them the same color, the color of the text won't change. However, since this appears to be an Access-specific option, and not a database-specific option, you will need to run VBA to set this option on whichever computer the database opens on.

The page I linked you to may have more options for you that could be simpler.

Hope this helps,

Dennis
Go to the top of the page
 
+
ElbyG
post Mar 7 2011, 01:05 PM
Post #3

New Member
Posts: 9
From: Portland, OR



Thank you Doctor9,

In this case I do want to use the hyperlink functionality.

Not sure how to set the on-clicked option with VBA on individual computers; I'll have to research that further. These are all computers within a small workgroup so it would be possible to set with code on an event.

If anyone has suggestions, please post. Thanks, ElbyG
Go to the top of the page
 
+
doctor9
post Mar 7 2011, 01:12 PM
Post #4

UtterAccess VIP
Posts: 9,302
From: Wisconsin



ElbyG,

I'd check the Visual Basic Editor's help system, starting with the HyperlinkColor Property.

Hope this helps,

Dennis
Go to the top of the page
 
+
ShawnE
post Mar 7 2011, 02:50 PM
Post #5

UtterAccess Member
Posts: 39
From: Wisconsin, USA



Hi Elby,

This solution seems overly simple, but from what you're describing, it sounds like the "Fore Color" property of your text box is set to "Hyperlink Color", which is the default for a control based on a hyperlink field type - just change that Fore Color to whatever tickles your fancy. Your formatting will not change.

HTH,
Shawn
Go to the top of the page
 
+
ElbyG
post Mar 7 2011, 03:21 PM
Post #6

New Member
Posts: 9
From: Portland, OR



Not that simple but thanks...still looking.
Go to the top of the page
 
+
ShawnE
post Mar 7 2011, 03:39 PM
Post #7

UtterAccess Member
Posts: 39
From: Wisconsin, USA



okay...if I understand correctly, you want the text color to remain the same regardless of user clicks, right?
Go to the top of the page
 
+
ElbyG
post Mar 8 2011, 02:56 PM
Post #8

New Member
Posts: 9
From: Portland, OR



Correct...haven't yet figured it out.

Actually, both the fore color and back color change. The fore color becomes white and the back color becomes the fore color prior to the click event.

Thanks, ElbyG

This post has been edited by ElbyG: Mar 8 2011, 02:58 PM
Go to the top of the page
 
+
ShawnE
post Mar 8 2011, 03:21 PM
Post #9

UtterAccess Member
Posts: 39
From: Wisconsin, USA



If you're using Access 2010, and your hyperlink is stored in a table and accessed via text box on a standard form, changing the Fore Color and Back Color properties produces a static color for both. Any idea why that won't work?
Go to the top of the page
 
+
ElbyG
post Mar 8 2011, 10:47 PM
Post #10

New Member
Posts: 9
From: Portland, OR



I don't know why it won't work...tried this already. Still looking...
Go to the top of the page
 
+

Thank you for your support! Reply to this topicStart new topic

Jump To Forum:
 



RSS Go to Top  ·  Lo-Fi Version Time is now: 24th May 2013 - 01:09 PM