Conditional Formatting?

Patrick Snyder 0 Reputation points
2025-12-11T20:56:26.2733333+00:00

Can Access do conditional formatting like Excel? Can I compare two text boxes?

If text box 1 has a value and text box 2 has a different value, can text box 2 change color if it does not meet the conditions of text box 1?

If the above is possible, if text box 1 has a value but it has a greater than or equal to symbol (example) ≤ can the conditional format be able to determine if text box 2 meets the condition of text box 1?

Example:

Text box 1: ≤10

Text box 2: 15

Answer = text box should turn red because it is not less than or equal to 10.

Microsoft 365 and Office | Access | Other | Windows
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Q&A Assist
    2025-12-11T20:56:38.4133333+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    Access does not support conditional formatting in the same way that Excel does. While Excel allows for complex conditional formatting based on formulas and comparisons between cells, Access has more limited capabilities in this regard. In Access, you can use validation rules to enforce certain conditions on data entry, but these do not provide the same visual formatting capabilities as Excel's conditional formatting.

    For your specific scenario of comparing two text boxes and changing the color of one based on the value of another, this functionality is not natively supported in Access. You would need to implement a workaround, such as using VBA (Visual Basic for Applications) to change the properties of the controls based on their values. However, this requires programming knowledge and may not be as straightforward as using Excel's built-in features.

    In summary, while you can perform comparisons and validations in Access, the visual conditional formatting based on those comparisons, like in Excel, is not directly available.

    0 comments No comments

  2. Duane Hookom 26,555 Reputation points Volunteer Moderator
    2025-12-11T22:48:14.9666667+00:00

    You should be able to use the Eval() function to create an expression that can be used in conditional formatting. This is a form with two fields [Condition] and [NumberValue]. The left text box has a control source of =Eval([NumberValue] & [Condition]). I used the same condition/expression in without the "=".

    User's image


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.