A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Checkbox Colour In a Form



 
 
Thread Tools Display Modes
  #1  
Old October 6th, 2004, 07:05 AM
Nick
external usenet poster
 
Posts: n/a
Default Checkbox Colour In a Form

Can anyone tell me how to change the checkbox label text
colour, to red, if the checkbox is true? This needs to
work both ways so that if you un-check the box, the text
reverts back.

Thanks in advance.
Nick

  #2  
Old October 6th, 2004, 07:34 AM
Allen Browne
external usenet poster
 
Posts: n/a
Default

You can't do this with a label, but you could with a check box.

Right-click the label, and choose Change to | Text box.

Type the old caption into the ControlSource, e.g.:
="MyYesNoField"

Choose Conditional Formatting on the Format menu.
Set Condition 1 to:
Expression Is [MyYesNo]=True
and choose the color you want.

To make the text box look like a label, set its Enabled property to No and
Locked to Yes.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Nick" wrote in message
...
Can anyone tell me how to change the checkbox label text
colour, to red, if the checkbox is true? This needs to
work both ways so that if you un-check the box, the text
reverts back.



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
auto entry into second table after update Tony New Users 13 July 9th, 2004 10:42 PM
Modal form Praveen Manne Using Forms 1 July 6th, 2004 10:49 PM
Modal form Praveen Manne General Discussion 1 July 6th, 2004 10:49 PM
synchronizing form and list box Deb Smith Using Forms 8 June 21st, 2004 08:15 PM
surely a form with a ListBox can be used in a query? 1.156 Running & Setting Up Queries 14 June 2nd, 2004 04:54 PM


All times are GMT +1. The time now is 03:25 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.