Hi everyone, this is my problem:
I have an address that comes from 2 separate fields, I use the following formula to display them:
if isnull({tbFlashComment.BusinessAddress1})
then stringvar addr1:=""
else stringvar addr1:={tbFlashComment.BusinessAddress1};
if isnull({tbFlashComment.BusinessAddress2})
then stringvar addr2:=""
else stringvar addr2:={tbFlashComment.BusinessAddress2};
trim(addr1 + " " + addr2) [/color red]
When both fields are blank or null I want to supress the line, so I added the following to my suppress x+2:
if isnull({tbFlashComment.BusinessAddress1})
then stringvar addr1:=""
else stringvar addr1:={tbFlashComment.BusinessAddress1};
if isnull({tbFlashComment.BusinessAddress2})
then stringvar addr2:=""
else stringvar addr2:={tbFlashComment.BusinessAddress2};
if trim(addr1 + addr2)="" then true else false [/color red]
The problem is that the line is still there. Any ideas what I'm doing wrong? or is there an easier way to do this?
Thanks a bunch,
Monica
I have an address that comes from 2 separate fields, I use the following formula to display them:
if isnull({tbFlashComment.BusinessAddress1})
then stringvar addr1:=""
else stringvar addr1:={tbFlashComment.BusinessAddress1};
if isnull({tbFlashComment.BusinessAddress2})
then stringvar addr2:=""
else stringvar addr2:={tbFlashComment.BusinessAddress2};
trim(addr1 + " " + addr2) [/color red]
When both fields are blank or null I want to supress the line, so I added the following to my suppress x+2:
if isnull({tbFlashComment.BusinessAddress1})
then stringvar addr1:=""
else stringvar addr1:={tbFlashComment.BusinessAddress1};
if isnull({tbFlashComment.BusinessAddress2})
then stringvar addr2:=""
else stringvar addr2:={tbFlashComment.BusinessAddress2};
if trim(addr1 + addr2)="" then true else false [/color red]
The problem is that the line is still there. Any ideas what I'm doing wrong? or is there an easier way to do this?
Thanks a bunch,
Monica