Jump to content

add a leading character


This topic is 8668 days old. Please don't post here. Open a new topic instead.

Recommended Posts

quote:

Originally posted by ScottHaneda:

I have a DB that has several thousand zip codes in at that lost a leading character...for example, 1568 should be 01568.

Anyone know how I can insert a "0" in front of all of them?

Replace (ZipCode, Left("00000" & ZipCode, 5)).

This should give you a 5 char zip code every time, with zeros filling in the missing numbers.

------------------

=-=-=-=-=-=-=-=-=-=-=-=-=

Kurt Knippel

Senior Filemaker Developer

http://www.database-resources.com

mailto:[email protected]

=-=-=-=-=-=-=-=-=-=-=-=-=

Link to comment
Share on other sites

This topic is 8668 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.