Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

zipcode report -finding the bad ones

Status
Not open for further replies.

andreadd

MIS
Jan 15, 2008
67
CR2008 Visual Advantage, SQL 2000 SP4

Hello,

I am writing a report that is using graphics to flag records that are missing information like phone number. I am using a formula in supression to get the graphic to change based on what i am looking for. To find totally missing data it is working far better than I planned however I have a new task for zipcodes. Turns out we have many that do not have the 5 digits that the USPS need. I need to alter my current formula {CONTACT1.ZIP} <> '' to also include and if not 5 digits long. I poked around in formula builder and didnt easily see a function for length - if blah.field is X' in length.

is there something like that?

thanks
 
Hi,
Try the Length() function:
Code:
If (IsNull({CONTACT1.ZIP}) or Length({CONTACT1.ZIP}) < 5) then
.....

Note : If ZIP is a Numeric field rather than text, then use:
Length(ToText({CONTACT1.ZIP}))



[profile]

To Paraphrase:"The Help you get is proportional to the Help you give.."
 
Have you tried "Length"? If Functions, go to Strings, then look for "length". You may need to mess with your Zipcode formats, but that would be a good start.
 
I was able to take your suggestions and figure out what I need

thanks a bunch for the help!!!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top