Hi,
I don't know whether I'm looking at this and missing something obvious, or my brain has just given up for the week!
I am trying to basically add a description field to a report, based on another field.
Here's a summary of the data:
if {debtor_freefields.ff2} = "0000" THEN "Default" else
if {debtor_freefields.ff2} = "D00" THEN "PEST - Default" else
if {debtor_freefields.ff2} = "D01" THEN "PEST - Michael Green" else
if {debtor_freefields.ff2} = "D02" THEN "PEST - Scott Friday" else
if {debtor_freefields.ff2} = "D03" THEN "PEST - Sean Murray" else
if {debtor_freefields.ff2} = "D04" THEN "PEST - Andy Rayland" else "Not yet set"
The problem being, is that the if statement isn't working for "0000" and returns "Not yet set" instead of "Default". Debtor_freefields.ff2 is alphanumeric, so as far as I can see, there shouldn't be a problem!
What am I missing that's glaringly obvious?! I would like to add, that I have been up for over 36 hours, so brain may be a little fried!
Thank you!
Di
I don't know whether I'm looking at this and missing something obvious, or my brain has just given up for the week!
I am trying to basically add a description field to a report, based on another field.
Here's a summary of the data:
if {debtor_freefields.ff2} = "0000" THEN "Default" else
if {debtor_freefields.ff2} = "D00" THEN "PEST - Default" else
if {debtor_freefields.ff2} = "D01" THEN "PEST - Michael Green" else
if {debtor_freefields.ff2} = "D02" THEN "PEST - Scott Friday" else
if {debtor_freefields.ff2} = "D03" THEN "PEST - Sean Murray" else
if {debtor_freefields.ff2} = "D04" THEN "PEST - Andy Rayland" else "Not yet set"
The problem being, is that the if statement isn't working for "0000" and returns "Not yet set" instead of "Default". Debtor_freefields.ff2 is alphanumeric, so as far as I can see, there shouldn't be a problem!
What am I missing that's glaringly obvious?! I would like to add, that I have been up for over 36 hours, so brain may be a little fried!
Thank you!
Di