cjbrown815
IS-IT--Management
Hello,
I have a manual Xtab report. I copied the first formula(Formula A
) below and pasted it in another field (Formula B) and it doesn’t work. I'm not getting red results for out of spec results. The only difference I can see is the results are 1000000 instead of just 100. I've tried everything to no avail. Please help
//Formula A
if {#LPC} = "TNTC" then crRed else
if {#LPC} = "NR" then crBlue else
if {#LPC} = "<1" then crGreen else
if {#LPC} in "1" to "4999" then crGreen else
if {#LPC} = ">150" then crRed else
if totext(val({#LPC}),"000") in "000" to "4999" then
crGreen else
if totext(val({#LPC}),"000") > "4999" then
crRed else
crNoColor
//Formula B
if {#ThermophilicCount} = "TNTC" then crRed else
if {#ThermophilicCount} = "NR" then crBlue else
if {#ThermophilicCount} = "<1" then crGreen else
if {#ThermophilicCount} in "1" to "999" then crGreen else
if {#ThermophilicCount} = ">150" then crRed else
if totext(val({#ThermophilicCount}),"000") in "000" to "999" then
crGreen else
if totext(val({#ThermophilicCount}),"000") > "999" then
crRed else
crNoColor
-CJ
SQL2005// CRXIr2// XP Pro
"Progress lies not in enhancing what is, but in advancing toward what will be"
-KHALIL GIBRAN 1883-1931
I have a manual Xtab report. I copied the first formula(Formula A
) below and pasted it in another field (Formula B) and it doesn’t work. I'm not getting red results for out of spec results. The only difference I can see is the results are 1000000 instead of just 100. I've tried everything to no avail. Please help
//Formula A
if {#LPC} = "TNTC" then crRed else
if {#LPC} = "NR" then crBlue else
if {#LPC} = "<1" then crGreen else
if {#LPC} in "1" to "4999" then crGreen else
if {#LPC} = ">150" then crRed else
if totext(val({#LPC}),"000") in "000" to "4999" then
crGreen else
if totext(val({#LPC}),"000") > "4999" then
crRed else
crNoColor
//Formula B
if {#ThermophilicCount} = "TNTC" then crRed else
if {#ThermophilicCount} = "NR" then crBlue else
if {#ThermophilicCount} = "<1" then crGreen else
if {#ThermophilicCount} in "1" to "999" then crGreen else
if {#ThermophilicCount} = ">150" then crRed else
if totext(val({#ThermophilicCount}),"000") in "000" to "999" then
crGreen else
if totext(val({#ThermophilicCount}),"000") > "999" then
crRed else
crNoColor
-CJ
SQL2005// CRXIr2// XP Pro
"Progress lies not in enhancing what is, but in advancing toward what will be"
-KHALIL GIBRAN 1883-1931