I am producing a report on which space is a premium. I'm trying to take three fields, each containing an integer and build a string as follows:
If FieldA > 0, then the first part of the string is FieldA's contents plus the text " Added"
If FieldA = 0, then I don't want anything to appear in the string at all
Same thing with fields B and C, except that the additional text is different.
In the end, I want to see strings like "9 Added, 4 Retained, 10 Seasonal" or "6 Retained, 5 Seasonal" or just "4 Added" on my report.
I'm having some difficulty figuring out how best to do this. Past attempts typically end up mired in nested if statements or incorrect references to one of the fields.
Any help would be appreciated.
Thanks,
Rachel
If FieldA > 0, then the first part of the string is FieldA's contents plus the text " Added"
If FieldA = 0, then I don't want anything to appear in the string at all
Same thing with fields B and C, except that the additional text is different.
In the end, I want to see strings like "9 Added, 4 Retained, 10 Seasonal" or "6 Retained, 5 Seasonal" or just "4 Added" on my report.
I'm having some difficulty figuring out how best to do this. Past attempts typically end up mired in nested if statements or incorrect references to one of the fields.
Any help would be appreciated.
Thanks,
Rachel