Conditional Formatting Question

  • Thread starter Thread starter Bob
  • Start date Start date
B

Bob

If there is no data in a text box I want it to turn red, what code would I
use!
Thanks in advance.........Bob Vance
 
Assuming Access 2000 or later, you can do it without code:

1. Open the form in design view.

2. Select the text box that will go red.
(We will assume it is named Text0 for this example.)

3. Choose Conditional Formatting on the Format menu.

4. Set Condition 1 to:
Expression [Text0] Is Null
 
Thanks Allen Brilliant.....Bob

Allen Browne said:
Assuming Access 2000 or later, you can do it without code:

1. Open the form in design view.

2. Select the text box that will go red.
(We will assume it is named Text0 for this example.)

3. Choose Conditional Formatting on the Format menu.

4. Set Condition 1 to:
Expression [Text0] Is Null

--
Allen Browne - Microsoft MVP. Perth, Western Australia.

Reply to group, rather than allenbrowne at mvps dot org.

Bob said:
If there is no data in a text box I want it to turn red, what code would
I use!
Thanks in advance.........Bob Vance
 
Thanks Allen Brilliant.....Bob
Allen Browne said:
Assuming Access 2000 or later, you can do it without code:

1. Open the form in design view.

2. Select the text box that will go red.
(We will assume it is named Text0 for this example.)

3. Choose Conditional Formatting on the Format menu.

4. Set Condition 1 to:
Expression [Text0] Is Null

--
Allen Browne - Microsoft MVP. Perth, Western Australia.

Reply to group, rather than allenbrowne at mvps dot org.

Bob said:
If there is no data in a text box I want it to turn red, what code would
I use!
Thanks in advance.........Bob Vance
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Text box to change Color! 9
TextBox Question! 7
Conditional Formating 2
Make a text box return blank if 1
Combo Box Colour Question 8
Script for Text Box 6
Command Button Question 2
Text Box Question 1

Back
Top