One of the best things about Access desktop databases is the ability to store large amounts of data and keep it organized. But sometimes you wind up with a screen full of numbers or text and it can be hard to pick out what’s really important. That’s where conditional formatting can help. You can set rules for each field on a form, and automatically highlight values according to those rules.
In the video
Format fields based on the values they contain (or on the results of an expression)
-
In the Navigation Pane, right-click the form that you want to change, and then click Layout View.
-
Select the column or field to which you want to apply conditional formatting. To apply the same formatting rules to multiple columns or fields, hold down the CTRL key and click each one until they are all selected.
-
On the Format tab, click Conditional Formatting.
-
In the Conditional Formatting Rules Manager dialog box, click New Rule.
-
Enter the criteria for your rule.
-
To format the field(s) based on the values they contain, select Field Value Is from the first list, and then select or enter the criteria you want.
-
To format a field based on a calculation, select Expression Is from the first list, and then type the expression in the box. For more information about expressions, see the article Introduction to expressions.
-
To apply formatting to the selected field only when the field has the focus, select Field Has Focus from the first list.
-
-
Select the formatting that you want to apply. You can set the following styles:
-
Bold
-
Italic
-
Underline
-
Background color
-
Font color
-
Enable (this option disables the field so that it cannot be edited, and overrides the Background color and Font color settings).
Access displays a preview of the formatting as you select options.
-
-
Click OK.
-
To add a new rule to the same field or fields, click New Rule and repeat this procedure from step 5.
Note: You can add up to 50 rules per field or group of fields. The rules are evaluated from top to bottom. Once the criteria for a rule have been met, Access applies the formatting for that rule and does not evaluate the rules below it.
-
When you are finished adding rules, click OK in the Conditional Formatting Rules Manager dialog box.
Compare values across records by using data bars
-
In the Navigation Pane, right-click the form that you want to change, and then click Layout View.
-
Select the column or field to which you want to apply conditional formatting. To apply the same formatting rules to multiple columns or fields, hold down the CTRL key and click each one until they are all selected.
-
On the Format tab, click Conditional Formatting.
-
In the Conditional Formatting Rules Manager dialog box, click New Rule.
-
Under Select a rule type, select Compare to other records.
-
Under Edit the rule description, select the options you want, and then click OK.