Newbies bigedmustafa Posted May 10, 2007 Newbies Share Posted May 10, 2007 I am trying to set up a database that has a field containing a risk level (Low, Medium, High). What I need is a script which will change the colour of the text in the field to either Red, Yellow, Green depending on the contents. Can't quite figure out the best way to do this. Link to comment Share on other sites More sharing options...
Raybaudi Posted May 10, 2007 Share Posted May 10, 2007 Case( risk level = "Medium"; TextColor ( "Medium" ; RGB ( 255 ; 255 ; 0 ) ); risk level = "Hight"; TextColor ( "Hight" ; RGB ( 255 ; 0 ; 0 ) ); TextColor ( "Low" ; RGB ( 0 ; 255 ; 0 ) ) ) BTW: if the field that have to change its colour is the same ( risk level ), you can enter this calc into the option of autoenter a calc for the field: risk level: Case( risk level = "Medium"; TextColor ( risk level ; RGB ( 255 ; 255 ; 0 ) ); risk level = "Hight"; TextColor ( risk level ; RGB ( 255 ; 0 ; 0 ) ); TextColor ( risk level ; RGB ( 0 ; 255 ; 0 ) ) ) Link to comment Share on other sites More sharing options...
Recommended Posts
This topic is 6188 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now