conditional formatting issue

bigmac

Registered User.
Local time
Today, 12:24
Joined
Oct 5, 2008
Messages
302
hi all, can you help please,
i have a subform with two fields [status] and [process], i am trying to get the backcolor of procces to change to red if the status field contains the text "expired".
i have tried vba. plced on the after update
if me.status = "expired" then
me.process.backcolor = vbred
else me.process backcolor = vbwhite
end if
this
changes the color of the field [process] but also all process field colors to red even if the status field does not contain "expired".
i think conditional formatting is the way to go but i think i need an expression co complet this,as this is totaly alien to me can you show me an expression to do this please
 
you do need to use conditional formatting - see the button on the format ribbon and the attachment
 

Attachments

  • ScreenHunter_09 Jan. 08 15.34.jpg
    ScreenHunter_09 Jan. 08 15.34.jpg
    31.4 KB · Views: 1,014
hi cj london,
thank you for prompt response but i think you do not understand what i am asking for , i know how to use conditional formatting , but not i do not know how to write an expression to complet the task (how to tell it to look at value in [status] and if "expired" then change backcolor in [process]
 
hi cj london,
thank you for prompt response but i think you do not understand what i am asking for , i know how to use conditional formatting , but not i do not know how to write an expression to complet the task (how to tell it to look at value in [status] and if "expired" then change backcolor in [process]
Apply the formatting to the field that will trigger the change.. CJ has suggested you right !
 
I just did a test with a form that displays 2 fields ID and My_Field.
I used an expression in conditional formatting to set the background of My_Field to Yellow if ID<10.


Hope it helps.
 

Attachments

  • CondFmt_ID.jpg
    CondFmt_ID.jpg
    48.8 KB · Views: 327
jdraw thanks for your response it solved the problem
 
Glad to help
 

Users who are viewing this thread

Back
Top Bottom