Hi All,
I just want to check to see if the number that was entered in the total column is correct. If it is not then I want the variable to have a red colored font.
That way it flags the user that it is wrong and needs to be updated.
The wrote the following but the font says black and I know what I did wrong....again.
<CFSET CheckTotal="#NumberFormat(getmileage.tripstart + getmileage.tripend)#">
<CFSET Total ="#getmileage.triptotal#">
<CFSET ColorToUse="color: E10000; font-weight: bold;">
<CFSET Color="color: 000000">
<cfif CheckTotal eq Total>
<CFSET CheckTotal="#getmileage.triptotal#">
<CFSET Color="color: 000000">
<cfelse>
<CFSET CheckTotal="#getmileage.triptotal#">
<CFSET ColorToUse="color: E10000; font-weight: bold;">
</cfif>
Thanks John
I just want to check to see if the number that was entered in the total column is correct. If it is not then I want the variable to have a red colored font.
That way it flags the user that it is wrong and needs to be updated.
The wrote the following but the font says black and I know what I did wrong....again.
<CFSET CheckTotal="#NumberFormat(getmileage.tripstart + getmileage.tripend)#">
<CFSET Total ="#getmileage.triptotal#">
<CFSET ColorToUse="color: E10000; font-weight: bold;">
<CFSET Color="color: 000000">
<cfif CheckTotal eq Total>
<CFSET CheckTotal="#getmileage.triptotal#">
<CFSET Color="color: 000000">
<cfelse>
<CFSET CheckTotal="#getmileage.triptotal#">
<CFSET ColorToUse="color: E10000; font-weight: bold;">
</cfif>
Thanks John