Using Crystal Reports 8.5.......
This is ugly:
if {LABSTAT.Status Code} = "ESVD" and {LABSTAT.Locker} = "VD01" then "Tapes Completed" else
if {LABSTAT.Status Code} = "ESRS" and {LABSTAT.Locker} = "MVR1" then "South Transfer To Duplication" else
if {LABSTAT.Status Code} = "ESRS" and {LABSTAT.Locker} = "MVR2" then "South Transfer From Duplication" else
if {LABSTAT.Status Code} = "ESRS" and {LABSTAT.Locker} = "SESTS" then "South Tapes In" else
if {LABSTAT.Status Code} = "ESRN" and {LABSTAT.Locker} = "MR01" then "North Transfer To Duplication" else
if {LABSTAT.Status Code} = "ESRN" and {LABSTAT.Locker} = "MP01" then "North Transfer From Duplication" else
if {LABSTAT.Status Code} = "ESRN" and {LABSTAT.Locker} = "NESTS" then "North Tapes In" else
if {LABSTAT.Status Code} = "ESVD" and {LABSTAT.Locker} = "VD02" then "Central Tapes In" else
if {LABSTAT.Status Code} = "EDVD" and {LABSTAT.Locker} = "ED01" then "Turned Over to Station" else
if {LABSTAT.Status Code} = "EDRS" and {LABSTAT.Locker} = "ED15" then "South Turned Over to Station" else
if {LABSTAT.Status Code} = "EDRN" and {LABSTAT.Locker} = "ED15" then "North Turned Over to Station" else
if {LABSTAT.Status Code} = "ESVD" and {LABSTAT.Locker} = "VD06" then "Repair Completed" else
if {LABSTAT.Status Code} = "EDVD" and {LABSTAT.Locker} = "VD05" then "Training Tapes In" else
if {LABSTAT.Status Code} = "EDVD" and {LABSTAT.Locker} = "VD04" then "Training Completed" else
if {LABSTAT.Status Code} = "EDRC" and {LABSTAT.Locker} = "ED24" then "Tapes Pending Destruction" else
if {LABSTAT.Status Code} = "EDVD" and {LABSTAT.Locker} = "ED06" then "Tapes Destroyed" else
if {LABSTAT.Status Code} = "EDRC" and {LABSTAT.Locker} = "ED22" then "Tapes Destroyed" else
if {LABSTAT.Status Code} = "EDVD" and {LABSTAT.Locker} = "ED05" then "Turned Over To Long Term Storage" else
if {LABSTAT.Status Code} = "EDVD" and {LABSTAT.Locker} = "ED04" then "Turned Over To OPS/IAB" else
if {LABSTAT.Status Code} = "EDVD" and {LABSTAT.Locker} = "ED03" then "Turned Over To Pursuit Review Board" else
if {LABSTAT.Status Code} = "EDVD" and {LABSTAT.Locker} = "ED01" then "Turned Over To CJRB" else
"Not Reported";
Would a Case statment be the way to go? If so (I have not used Case statments in CR yet), how would a partial example look? Or is there an even more elegent way??
This is ugly:
if {LABSTAT.Status Code} = "ESVD" and {LABSTAT.Locker} = "VD01" then "Tapes Completed" else
if {LABSTAT.Status Code} = "ESRS" and {LABSTAT.Locker} = "MVR1" then "South Transfer To Duplication" else
if {LABSTAT.Status Code} = "ESRS" and {LABSTAT.Locker} = "MVR2" then "South Transfer From Duplication" else
if {LABSTAT.Status Code} = "ESRS" and {LABSTAT.Locker} = "SESTS" then "South Tapes In" else
if {LABSTAT.Status Code} = "ESRN" and {LABSTAT.Locker} = "MR01" then "North Transfer To Duplication" else
if {LABSTAT.Status Code} = "ESRN" and {LABSTAT.Locker} = "MP01" then "North Transfer From Duplication" else
if {LABSTAT.Status Code} = "ESRN" and {LABSTAT.Locker} = "NESTS" then "North Tapes In" else
if {LABSTAT.Status Code} = "ESVD" and {LABSTAT.Locker} = "VD02" then "Central Tapes In" else
if {LABSTAT.Status Code} = "EDVD" and {LABSTAT.Locker} = "ED01" then "Turned Over to Station" else
if {LABSTAT.Status Code} = "EDRS" and {LABSTAT.Locker} = "ED15" then "South Turned Over to Station" else
if {LABSTAT.Status Code} = "EDRN" and {LABSTAT.Locker} = "ED15" then "North Turned Over to Station" else
if {LABSTAT.Status Code} = "ESVD" and {LABSTAT.Locker} = "VD06" then "Repair Completed" else
if {LABSTAT.Status Code} = "EDVD" and {LABSTAT.Locker} = "VD05" then "Training Tapes In" else
if {LABSTAT.Status Code} = "EDVD" and {LABSTAT.Locker} = "VD04" then "Training Completed" else
if {LABSTAT.Status Code} = "EDRC" and {LABSTAT.Locker} = "ED24" then "Tapes Pending Destruction" else
if {LABSTAT.Status Code} = "EDVD" and {LABSTAT.Locker} = "ED06" then "Tapes Destroyed" else
if {LABSTAT.Status Code} = "EDRC" and {LABSTAT.Locker} = "ED22" then "Tapes Destroyed" else
if {LABSTAT.Status Code} = "EDVD" and {LABSTAT.Locker} = "ED05" then "Turned Over To Long Term Storage" else
if {LABSTAT.Status Code} = "EDVD" and {LABSTAT.Locker} = "ED04" then "Turned Over To OPS/IAB" else
if {LABSTAT.Status Code} = "EDVD" and {LABSTAT.Locker} = "ED03" then "Turned Over To Pursuit Review Board" else
if {LABSTAT.Status Code} = "EDVD" and {LABSTAT.Locker} = "ED01" then "Turned Over To CJRB" else
"Not Reported";
Would a Case statment be the way to go? If so (I have not used Case statments in CR yet), how would a partial example look? Or is there an even more elegent way??