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!

Counting Characters

Status
Not open for further replies.

ChiTownDiva

Technical User
Jan 24, 2001
273
US
I want to suppress a record based on the number of characters in a field.

i.e...

If the responsibility code is equal to 8 characters or less then suppress the record.

Can a formula be written to accomplish this?

ChiTownDivaus [ponytails2]
 
Try:

len({table.field}) < 9

in the record selection formula to omit them from the report entirely, rather than after the fact.

Report->Edit Selection Formula->Record.

Or you can use it in a suppress.

-k kai@informeddatadecisions.com
 
I always include the trim function to get rid of the blanks. I don't know if this is really necessary. It may be a hold over from my old dbase/clipper programming days. I would write:

len(trim({table.field})) < 9

Howard Hammerman,
Crystal Training and Crystal Material
On-site and public classes
Low-cost telephone/email support
FREE independent Crystal newsletter
howard@hammerman.com
800-783-2269
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top