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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Supressing Detail 2

Status
Not open for further replies.

pineisland99

Instructor
Feb 13, 2007
22
0
0
US
I have a field in my db which holds state and zip data(ie - Fl 33165)

I am building a report with a field that should display zip code only. What code can I put in a formula to, say, remove the first 3 characters of my output - Ideally, my result would display only the zip code.

Thank You
 
Use 'right' function to display only Zipcode from the value of your field:
right([yourfield],5)

sailor
 
If the zip code sometimes has the extension (xxxxx-xxxx), you could use:

split({table.field}," ")[2]

...assuming there is always a space in the field.

-LB

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top