nathanwiley
Technical User
Ok, I work in energy assistance, and I use crystal reports to run error checks. My newest project is creating a report so I can check account numbers for accuracy.
For example if a vendor has an account number like so "12-2254569891-215635489" 20 digits long including dashes.
but
if someone keys in a 18 digit account number then crystal would display this information so I could then correct the mistake or have the intake agent correct it.
here is how I started the formula...
(LEN({vwAVEAPClaims.AccountNmbr}) = 20 OR
ISNULL({vwAVEAPClaims.AccountNmbr}))
OR
but I have since learned that is should be closer to this...
IF (LEN({vwAVEAPClaims.AccountNmbr}) = 20 OR
ISNULL({vwAVEAPClaims.AccountNmbr})) then
TRUE
ELSE
FALSE
but I am stuck... here is the whole fomula I have but it displays the account numbers that match the lenth of 20 and doesn't show the incorrect data.
{vwAVEAPApplications.ProgramYear} = 2010 and
{vwAVApplications.ApprovedForEAP} and
(
(LEN({vwAVEAPClaims.AccountNmbr}) = 20 OR
ISNULL({vwAVEAPClaims.AccountNmbr}))
OR
(TRIM({vwAVEAPClaims.VendorName}) = "vendor name" OR
ISNULL({vwAVEAPClaims.VendorName}))
)
I hope anyone could help...
For example if a vendor has an account number like so "12-2254569891-215635489" 20 digits long including dashes.
but
if someone keys in a 18 digit account number then crystal would display this information so I could then correct the mistake or have the intake agent correct it.
here is how I started the formula...
(LEN({vwAVEAPClaims.AccountNmbr}) = 20 OR
ISNULL({vwAVEAPClaims.AccountNmbr}))
OR
but I have since learned that is should be closer to this...
IF (LEN({vwAVEAPClaims.AccountNmbr}) = 20 OR
ISNULL({vwAVEAPClaims.AccountNmbr})) then
TRUE
ELSE
FALSE
but I am stuck... here is the whole fomula I have but it displays the account numbers that match the lenth of 20 and doesn't show the incorrect data.
{vwAVEAPApplications.ProgramYear} = 2010 and
{vwAVApplications.ApprovedForEAP} and
(
(LEN({vwAVEAPClaims.AccountNmbr}) = 20 OR
ISNULL({vwAVEAPClaims.AccountNmbr}))
OR
(TRIM({vwAVEAPClaims.VendorName}) = "vendor name" OR
ISNULL({vwAVEAPClaims.VendorName}))
)
I hope anyone could help...