Quote:
Originally Posted by ammoos
If the age is above 20 then the corresponding names should display in a blue color and the other names that’s the age under 20 will show in black...
And when the age is exactly 20, what color?
Presumably your your subform is either
Continuous or
Datasheet View, so the easiest way to do conditional formatting will be thru the menu. Open the form used as the subform in
Design View and select the field that holds your names, then, on the menu
- Goto Format - Conditional Formatting
- Condition1
- Expression Is [AgeFieldName]< 20
- Select Black as the Fore Color
- Click on Add
- Condition2
- Expression Is [AgeFieldName]> 20
- Select Blue as the Fore Color
If you want a third color if
Age = 20 what you do depends on whether it's a
Datasheet View or a
Continuous View.
If it's
Continuous, you can simply change the color that's now displayed at the top of the
Conditional Formatting Dialog box for
Default Formatting.
If it's
Datasheet View you'll have to Add the
Condition3
Expression Is [AgeFieldName] = 20
Then select your color
Linq
;0)>