I'm using an IF THEN ELSE statement to display a string. the field type is varchar and can be null. My Statements are:
IF ISNULL ({storedprocedure.fieldname})Then "None" ELSE
IF TRIM({storedprocedure.fieldname})= "" Then "NONE" Else
IF {storedprocedure.fieldname} = "Contact" THEN "Contact" Else
IF {storedprocedure.fieldname}= "A" Then "First" Else
IF {storedprocedure.fieldname}= "B" Then "Middle Row" ELSE
IF {storedprocedure.fieldname}= "C" Then "LastRow" ELSE
IF {storedprocedure.fieldname}= "D" Then "Door" ELSE
IF {storedprocedure.fieldname}= "M" Then "Mezz";
I have covered all the potential values in this field.
This is working when the field is not blank or NULL but not displaying any value if it is. Any ideas on what I'm doing wrong?
IF ISNULL ({storedprocedure.fieldname})Then "None" ELSE
IF TRIM({storedprocedure.fieldname})= "" Then "NONE" Else
IF {storedprocedure.fieldname} = "Contact" THEN "Contact" Else
IF {storedprocedure.fieldname}= "A" Then "First" Else
IF {storedprocedure.fieldname}= "B" Then "Middle Row" ELSE
IF {storedprocedure.fieldname}= "C" Then "LastRow" ELSE
IF {storedprocedure.fieldname}= "D" Then "Door" ELSE
IF {storedprocedure.fieldname}= "M" Then "Mezz";
I have covered all the potential values in this field.
This is working when the field is not blank or NULL but not displaying any value if it is. Any ideas on what I'm doing wrong?