PC Review


Reply
Thread Tools Rate Thread

Conditonal formatting a checkbox in a report...

 
 
James Newman
Guest
Posts: n/a
 
      30th Oct 2004
Hey all,

I am hoping this is a very simple question to answer. I am using
Access 2003 and have a report that has two text box fields and 12
checkbox fields the display a Paid/Unpaid status for each month. All
of these fields are located in the detail section of the report.

I would like to conditionally format the checkboxes and their labels
to appear red when unpaid (no check). If I select either of the two
text box fields I can select conditional formatting from the menu bar
but if I select any of the 12 checkboxes the conditional formatting
option is grayed out.

Am I missing something simple here??

Thanks for any help,
James Newman

 
Reply With Quote
 
 
 
 
Allen Browne
Guest
Posts: n/a
 
      30th Oct 2004
I don't think you can apply conditional formatting to a check box, so how
about a text box that simulates the check box?

Delete the check box from the report.

Replace it with a text box, and set these properties:
Control Source NameOfYourYesNoField
Name NameOfYourYesNoField
Font Name Wingdings
Width 0.18 in
Format {see below}

Type these 3 characters in the Format property:
- Hold down Alt, and type 0168 on the numeric keypad. Release Alt.
- Type Backslash
- Hold down Alt, and type 0254 on the numeric keypad. Release Alt.

Now apply conditional formatting. The text box has the value True or False.

Duplicate this text box for your other fields as well.

The trick relies on the fact that Access uses 0 for False, and -1 for True.
The Format expression tells it to use different formatting for a negative
number. The actual formatting expressions are the Wingdings characters that
look like unchecked and checked boxes. If you have the Character Map
installed (Windows applet), use it to find the characters.

It's a useful trick, giving you not only conditional formatting and coloured
check boxes, but resizeable check boxes (just change the font size), blanks
for False, and unboxed check marks for True.

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

"James Newman" <(E-Mail Removed)> wrote in message
news(E-Mail Removed)...
>
> I am hoping this is a very simple question to answer. I am using
> Access 2003 and have a report that has two text box fields and 12
> checkbox fields the display a Paid/Unpaid status for each month. All
> of these fields are located in the detail section of the report.
>
> I would like to conditionally format the checkboxes and their labels
> to appear red when unpaid (no check). If I select either of the two
> text box fields I can select conditional formatting from the menu bar
> but if I select any of the 12 checkboxes the conditional formatting
> option is grayed out.
>
> Am I missing something simple here??
>
> Thanks for any help,
> James Newman



 
Reply With Quote
 
 
 
 
Allen Browne
Guest
Posts: n/a
 
      30th Oct 2004
More detail in new web page:
Check boxes on reports
at:
http://members.iinet.net.au/~allenbrowne/ser-52.html

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

"Allen Browne" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>I don't think you can apply conditional formatting to a check box, so how
>about a text box that simulates the check box?
>
> Delete the check box from the report.
>
> Replace it with a text box, and set these properties:
> Control Source NameOfYourYesNoField
> Name NameOfYourYesNoField
> Font Name Wingdings
> Width 0.18 in
> Format {see below}
>
> Type these 3 characters in the Format property:
> - Hold down Alt, and type 0168 on the numeric keypad. Release Alt.
> - Type Backslash
> - Hold down Alt, and type 0254 on the numeric keypad. Release Alt.
>
> Now apply conditional formatting. The text box has the value True or
> False.
>
> Duplicate this text box for your other fields as well.
>
> The trick relies on the fact that Access uses 0 for False, and -1 for
> True. The Format expression tells it to use different formatting for a
> negative number. The actual formatting expressions are the Wingdings
> characters that look like unchecked and checked boxes. If you have the
> Character Map installed (Windows applet), use it to find the characters.
>
> It's a useful trick, giving you not only conditional formatting and
> coloured check boxes, but resizeable check boxes (just change the font
> size), blanks for False, and unboxed check marks for True.
>
>
> "James Newman" <(E-Mail Removed)> wrote in message
> news(E-Mail Removed)...
>>
>> I am hoping this is a very simple question to answer. I am using
>> Access 2003 and have a report that has two text box fields and 12
>> checkbox fields the display a Paid/Unpaid status for each month. All
>> of these fields are located in the detail section of the report.
>>
>> I would like to conditionally format the checkboxes and their labels
>> to appear red when unpaid (no check). If I select either of the two
>> text box fields I can select conditional formatting from the menu bar
>> but if I select any of the 12 checkboxes the conditional formatting
>> option is grayed out.
>>
>> Am I missing something simple here??
>>
>> Thanks for any help,
>> James Newman



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Advanced Conditonal Formatting =?Utf-8?B?c2ltc2py?= Microsoft Excel Programming 1 21st Aug 2004 12:50 AM
Master-Detail Datagrid -checkbox (once tick the checkbox, all the child checkbox is ticked) Agnes Microsoft VB .NET 0 16th Aug 2004 11:23 AM
Conditonal Formatting =?Utf-8?B?Z2V6YQ==?= Microsoft Excel Misc 3 21st Jul 2004 08:34 PM
Conditonal formatting (I have 4 conditions to meet) gimley Microsoft Excel Misc 2 17th Mar 2004 03:42 AM
Conditonal Formatting VB Code? =?Utf-8?B?Um9uUw==?= Microsoft Excel Programming 4 16th Jan 2004 04:06 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:29 PM.