Hello,
I need to set the value of a form field based on the value of two database table fields ([IMPACT].[value] and [PROBABILITY].[value]). Both value fields can contain number from 1 thru 5 so there are a total of 25 different conditions. Here's pseudo code for the first 5 conditions:
if [IMPACT].[value]=1 and [PROBABILITY].[value]=1 then form field ="GREEN"
if [IMPACT].[value]=1 and [PROBABILITY].[value]=2 then form field ="GREEN"
if [IMPACT].[value]=1 and [PROBABILITY].[value]=3 then form field="YELLOW"
if [IMPACT].[value]=1 and [PROBABILITY].[value]=4 then form field="YELLOW"
if [IMPACT].[value]=1 and [PROBABILITY].[value]=5 then form field = "RED"
Any suggestions on how best to implement this in a manner that is easily maintained (my client may change the color scheme on me)?
Thank You.
I need to set the value of a form field based on the value of two database table fields ([IMPACT].[value] and [PROBABILITY].[value]). Both value fields can contain number from 1 thru 5 so there are a total of 25 different conditions. Here's pseudo code for the first 5 conditions:
if [IMPACT].[value]=1 and [PROBABILITY].[value]=1 then form field ="GREEN"
if [IMPACT].[value]=1 and [PROBABILITY].[value]=2 then form field ="GREEN"
if [IMPACT].[value]=1 and [PROBABILITY].[value]=3 then form field="YELLOW"
if [IMPACT].[value]=1 and [PROBABILITY].[value]=4 then form field="YELLOW"
if [IMPACT].[value]=1 and [PROBABILITY].[value]=5 then form field = "RED"
Any suggestions on how best to implement this in a manner that is easily maintained (my client may change the color scheme on me)?
Thank You.