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  

Conditional Formatting Help



 
 
Thread Tools Display Modes
  #1  
Old December 16th, 2009, 07:56 PM posted to microsoft.public.access.forms
Chad
external usenet poster
 
Posts: 6
Default Conditional Formatting Help

I have a form that uses a yes/no tickbox. When the tickbox is
selected, the records on the form are locked. I would like to create
a conditional format for the records to shade grey when the yes/no box
is ticked.

I've tried selecting the records, open conditional formatting, under
condition 1, creating an expression that says "Archive"=-1. Archive
is the control source of the tickbox. I assumed -1 would relate to
yes/ticked. I've also tried "Archive"=True.

Thanks in advance.

Chad
  #2  
Old December 16th, 2009, 08:57 PM posted to microsoft.public.access.forms
Al Campagna[_2_]
external usenet poster
 
Posts: 1,462
Default Conditional Formatting Help

Chad,
You need to refer to the Name property of the checkbox control,
not the ControlSource.
I'll assume that the Name is Archive also.
In that case... set the color when...

Expression Is [Archive] = True
--
hth
Al Campagna
Microsoft Access MVP
http://home.comcast.net/~cccsolutions/index.html

"Find a job that you love... and you'll never work a day in your life."


"Chad" wrote in message
...
I have a form that uses a yes/no tickbox. When the tickbox is
selected, the records on the form are locked. I would like to create
a conditional format for the records to shade grey when the yes/no box
is ticked.

I've tried selecting the records, open conditional formatting, under
condition 1, creating an expression that says "Archive"=-1. Archive
is the control source of the tickbox. I assumed -1 would relate to
yes/ticked. I've also tried "Archive"=True.

Thanks in advance.

Chad



  #3  
Old December 16th, 2009, 09:26 PM posted to microsoft.public.access.forms
Chad
external usenet poster
 
Posts: 6
Default Conditional Formatting Help

Thanks so much, Al! Works perfect. My name property was lower case
(archive)

Thank you!

Chad
 




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


All times are GMT +1. The time now is 09:01 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.