teferi2002
Technical User
I would like to add in the below code to make sure the value in the database for the phone number is not a garbage like this sam-same. I would like to display No phone on the report if the return value is not a number.
I am using CR-10 and oracle 9i thanks for the help
If isnull({CUSTOMER.CONTACT_PHONE}) or
{CUSTOMER.CONTACT_PHONE}="" or
{CUSTOMER.CONTACT_PHONE}="0" or
{CUSTOMER.CONTACT_PHONE}="000-000-" or
{CUSTOMER.CONTACT_PHONE}="000-000-0000?" then
"** No Phone **"
else
"("&(left({CUSTOMER.CONTACT_PHONE},3) & ")" & mid({CUSTOMER.CONTACT_PHONE},5,3) & "-" & right({CUSTOMER.CONTACT_PHONE},4))
I am using CR-10 and oracle 9i thanks for the help
If isnull({CUSTOMER.CONTACT_PHONE}) or
{CUSTOMER.CONTACT_PHONE}="" or
{CUSTOMER.CONTACT_PHONE}="0" or
{CUSTOMER.CONTACT_PHONE}="000-000-" or
{CUSTOMER.CONTACT_PHONE}="000-000-0000?" then
"** No Phone **"
else
"("&(left({CUSTOMER.CONTACT_PHONE},3) & ")" & mid({CUSTOMER.CONTACT_PHONE},5,3) & "-" & right({CUSTOMER.CONTACT_PHONE},4))