May 10, 200718 yr Newbies 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.
May 10, 200718 yr 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 ) ) )
Create an account or sign in to comment