Conditional Formatting for Access 2016

Anonymous
2018-01-12T16:47:19+00:00

I have a text box with this control source:

=IIf(Date()>[Due Date] And [Progress]<100,"Late"," ")

I then want to use conditional formatting to make it red if it is Late

I'm trying "Check values....." and selecting "Field Value is"  Equal to "Late"

Then setting the colours to red

This is not working.

Any ideas?

Microsoft 365 and Office | Access | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
{count} votes

7 answers

Sort by: Most helpful
  1. Anonymous
    2018-01-12T17:13:41+00:00

    Instead of the field value try using the expression as the basis for the conditional formatting:

    Date()>[Due Date] And [Progress]<100

    0 comments No comments
  2. Anonymous
    2018-01-12T17:16:46+00:00

    Just tried that - no - it didn't have any affect.

    I also tried trying to change the back style to normal but that results on all rows being red

    0 comments No comments
  3. Anonymous
    2018-01-12T17:22:53+00:00

    On the basis of the information you've provided I see no reason why it should not work.  Can you post an image of the conditional formatting dialogue exactly as you've entered the criteria.

    0 comments No comments
  4. Anonymous
    2018-01-12T17:27:42+00:00

    Thanks for your reply - here are the screen shots

    this is for the conditional formatting as you suggested

    And this is the control on the text box

    0 comments No comments
  5. Anonymous
    2018-01-12T17:50:00+00:00

    The dialogue is showing the text colour to be red on the basis of the expression, but the preview shows the background colour to be red.  For the latter I'd expect:

    For the former the preview would be expected to show the text in red, not the background.  Try deleting the formatting rule and then create it again, setting the colours to what you want.

    0 comments No comments