I am writing a report that includes the full address of a customer in the form:
{name}
{addr1}
{addr2}
{addr3}
{city} {state} {zip}
In most cases the second and third address fields are blank so i want to suppress them and move the rest of the fields up. I have checked the suppress box on the field format screen and entered the following condition for both field {addr2} and {addr3}:
isnull({addr2}) or length(trim({addr2})) = 0
(same rule for addr3 except I changed the field name to {addr3}).
I have also tried inserting the field into a text object then checking the "suppress embedded blank field lines"
that does not work either.
The third alternative - separate sections for each field - is viable but does not appear to be the most efficient way.
My question/problem - the fields may be suppressed but they do not go away and the remaining fields do not move up. Is that how suppress is suppossed to work? If you use the suppress command on a section the entire section goes away (if the condition is met).
Crystal v11 Enterprise
Rick Piekos
Massachusetts
{name}
{addr1}
{addr2}
{addr3}
{city} {state} {zip}
In most cases the second and third address fields are blank so i want to suppress them and move the rest of the fields up. I have checked the suppress box on the field format screen and entered the following condition for both field {addr2} and {addr3}:
isnull({addr2}) or length(trim({addr2})) = 0
(same rule for addr3 except I changed the field name to {addr3}).
I have also tried inserting the field into a text object then checking the "suppress embedded blank field lines"
that does not work either.
The third alternative - separate sections for each field - is viable but does not appear to be the most efficient way.
My question/problem - the fields may be suppressed but they do not go away and the remaining fields do not move up. Is that how suppress is suppossed to work? If you use the suppress command on a section the entire section goes away (if the condition is met).
Crystal v11 Enterprise
Rick Piekos
Massachusetts