473,324 Members | 2,239 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

conditional formatting

i've been trying to get conditional formatting to work via a tick box. this
is on a form
i have a text box that i'd like to have the background colour change based
on a tick box.
the text box would have white background until such time as the tick box was
ticked then the back ground of the text box would turn red.

can someone direct me as to how to accomplish this

Nov 13 '05 #1
4 5579
Check boxes do not have a BackColor property to set.

On a report where you don't need to change the value, you can use a text box
that looks like a check box. Details in:
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.

"mugen" <z@brainless.net> wrote in message
news:35*************@individual.net...
i've been trying to get conditional formatting to work via a tick box.
this is on a form
i have a text box that i'd like to have the background colour change based
on a tick box.
the text box would have white background until such time as the tick box
was ticked then the back ground of the text box would turn red.

can someone direct me as to how to accomplish this

Nov 13 '05 #2
thanks..

it's not the back colour of the check box i want to change.
i'd like a text box (that is showing different information) in the same
form.. to have it's background change colour when the checkbox it ticked..
is this possibble
"Allen Browne" <Al*********@SeeSig.Invalid> wrote in message
news:41***********************@per-qv1-newsreader-01.iinet.net.au...
Check boxes do not have a BackColor property to set.

On a report where you don't need to change the value, you can use a text
box that looks like a check box. Details in:
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.

"mugen" <z@brainless.net> wrote in message
news:35*************@individual.net...
i've been trying to get conditional formatting to work via a tick box.
this is on a form
i have a text box that i'd like to have the background colour change
based on a tick box.
the text box would have white background until such time as the tick box
was ticked then the back ground of the text box would turn red.

can someone direct me as to how to accomplish this


Nov 13 '05 #3
Sorry, I didn't read your question properly.

1. Open your form in design view, and select the text box to be formatted.

2. Choose Conditional Formatting on the Format menu, and set Condition 1 to:
Expression Is ... [xxx] = True
replacing "xxx" with the name of your check box.

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

"mugen" <z@brainless.net> wrote in message
news:35*************@individual.net...
thanks..

it's not the back colour of the check box i want to change.
i'd like a text box (that is showing different information) in the same
form.. to have it's background change colour when the checkbox it ticked..
is this possibble

Nov 13 '05 #4
thanks very much.. that worked a treat
"Allen Browne" <Al*********@SeeSig.Invalid> wrote in message
news:41***********************@per-qv1-newsreader-01.iinet.net.au...
Sorry, I didn't read your question properly.

1. Open your form in design view, and select the text box to be formatted.

2. Choose Conditional Formatting on the Format menu, and set Condition 1
to:
Expression Is ... [xxx] = True
replacing "xxx" with the name of your check box.

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

"mugen" <z@brainless.net> wrote in message
news:35*************@individual.net...
thanks..

it's not the back colour of the check box i want to change.
i'd like a text box (that is showing different information) in the same
form.. to have it's background change colour when the checkbox it
ticked..
is this possibble


Nov 13 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Jouke Langhout | last post by:
Hello all! For quite some time now, I've got the following problem: Access won't close properly when a user closes the application. An ACCESS process stays active and that process can only be...
4
by: Bradley | last post by:
I have an A2000 database in which I have a continuous form with a tick box. There is also a text box with a conditional format that is based on the expression , if it's true then change the...
8
by: Dimitri Furman | last post by:
Given: Access 2002/2003 A subform in datasheet or continuous view, placed on a tab page (this last may or may not matter) Conditional formatting applied to some controls on the subform - format...
2
by: Von Bailey | last post by:
I have a form where the conditional formatting is set on some fields to bold if certain conditions are met. However, when the conditions are met some of the data that is to bold is either not...
2
by: Sara | last post by:
The problem: Conditional formatting bold, red when field Value < date() sets the field background to white - always - whether condition is met or not. I want the field unfilled and just red/bold...
5
by: Andrew Chanter | last post by:
Does anyone know a way you can use conditional formatting to create a banded style view as is commonly seen on the internet. (In othe words the first record appears on a gray background, the 2nd...
1
by: GGerard | last post by:
Hello Is there a way to use a variable in the Conditional Formatting of a Textbox? Example : I want the background of a textbox in a continuous form to change color when the value of...
8
by: Typehigh | last post by:
I have many text fields with conditional formatting applied, specifically when the condition is "Field Has Focus". Without any events associated with the fields the conditional formatting works...
4
by: midlothian | last post by:
Hello, I have conditional formatting set up on a subform based on a calculated value in the underlying query. For instance, if Sales are >$1000, the query displays "Yes," otherwise it displays...
2
by: Filips Benoit | last post by:
Dear All, Access 2003 adp on SQL_server 2005 A continious form showing 1 month based on table 'CALENDAR_MONTH_GRID' and fill with a SP. Fields: Companyname, Day1, day2, etc. The value in the...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.