andreadd
MIS
- Jan 15, 2008
- 67
Environment: SQL2000 SP4, Goldmine 6.7, Crystal Visual Advantage 2008
So I am writing this report that looks at my SQL tables and returns a red "x" if data is totally missing and a green check if data is present. I am using the graphics themselves and putting in the format / suppress area to suppress if data is missing. I now want to add a new graphic for my data slobs that do not enter the entire value or enters in something totally wrong.
for example i have a field that is a text field but is for numeric values only. I am using this formula to supress the graphic: numerictext({CONTACT1.KEY1}) or isnull({CONTACT1.KEY1})
so if there is numeric only or if it is empty then it supresses otherwise it is visible. works great.
i now want to go after 2 more items and am having a total brain fart.
i need to have my graphic suppress for email if there is no email address or if it has the "@" symbol in there. (my users biggest typo) So I want my bad data graphic to show IF the "@" is not present.
the other thing i need for my graphic to do is suppress if my zipcode is bigger than 5 digits. so the green check is for stuff in there, the red "x" is for missing zip and the bad data graphic is if there are fewer than 5 digits.
any ideas? (both fields - email and zip are string fields)
thanks
So I am writing this report that looks at my SQL tables and returns a red "x" if data is totally missing and a green check if data is present. I am using the graphics themselves and putting in the format / suppress area to suppress if data is missing. I now want to add a new graphic for my data slobs that do not enter the entire value or enters in something totally wrong.
for example i have a field that is a text field but is for numeric values only. I am using this formula to supress the graphic: numerictext({CONTACT1.KEY1}) or isnull({CONTACT1.KEY1})
so if there is numeric only or if it is empty then it supresses otherwise it is visible. works great.
i now want to go after 2 more items and am having a total brain fart.
i need to have my graphic suppress for email if there is no email address or if it has the "@" symbol in there. (my users biggest typo) So I want my bad data graphic to show IF the "@" is not present.
the other thing i need for my graphic to do is suppress if my zipcode is bigger than 5 digits. so the green check is for stuff in there, the red "x" is for missing zip and the bad data graphic is if there are fewer than 5 digits.
any ideas? (both fields - email and zip are string fields)
thanks