Conditional Format Column 2 (1 Viewer)

access2010

Registered User.
Local time
Today, 01:53
Joined
Dec 26, 2009
Messages
1,021
Could I please receive a suggestion on how to Conditional Format the field = Trd_Action =

If the field = Explanation = Contains the word = Closed = the back ground colour would be = Green

If the field = Explanation = Contains the word = Open = the back ground colour would be = Pink

Your assistance will be appreciated.

Nicole
 

Attachments

  • Conditional_Formation_Row_02=01.mdb
    696 KB · Views: 470

CJ_London

Super Moderator
Staff member
Local time
Today, 09:53
Joined
Feb 19, 2013
Messages
16,604
use the instr function as conditional formatting of your trd_action control

expression is.................instr([explanation],"closed")>0

or you can try like

expression is.................[explanation] like "*closed*"
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 16:53
Joined
May 7, 2009
Messages
19,230
same thing here, but uses the combos 2nd column.
 

Attachments

  • Conditional_Formation_Row_02=01.mdb
    1.2 MB · Views: 373

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 16:53
Joined
May 7, 2009
Messages
19,230
on design view of your form, click on Trd_Action textbox.
on access ribbon->Format->Conditional format (see the CF i made).
 

access2010

Registered User.
Local time
Today, 01:53
Joined
Dec 26, 2009
Messages
1,021
Thank you for your note, arnelgp, can you please advise me where to find your = CF = file?

Crystal
 

access2010

Registered User.
Local time
Today, 01:53
Joined
Dec 26, 2009
Messages
1,021
Thank you, arnelgp for your CF (Conditional Formating) link, but it does not have any reference that I can find for using a second column to change the CF back ground colour.
If you can point me to this condition as shown in our attached database, we would appreciate it.
Column one is visible
Column two is the conditional colour control.

Thank you, Crystal
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 16:53
Joined
May 7, 2009
Messages
19,230
here is a snapshot
snap2.png
 

CJ_London

Super Moderator
Staff member
Local time
Today, 09:53
Joined
Feb 19, 2013
Messages
16,604
for clarity, column numbers start from 0, so you are actually referencing column 1
 

access2010

Registered User.
Local time
Today, 01:53
Joined
Dec 26, 2009
Messages
1,021
Thank you, arnelgp for your suggestion.

1609725566370.png


We have received this= Error message
You can use the is operator in an expression with Null or Not Null

I forgot to mention that we are using Access 2003 and will be upgrading later this year.

Thank you.
Nicole
 

Users who are viewing this thread

Top Bottom