Jump to content
Sign in to follow this  
bonngo

Need A Leading Zero

Recommended Posts

I need to be able to add a leading zero to a number ONLY if the number is a single digit ex. 1 needs to be 01 but 12 can stay as is. Any ideas out there?

Share this post


Link to post
Share on other sites

Will this work? The SerialIncrement function is targeted at TEXT fields, not number fields.

Share this post


Link to post
Share on other sites

It will work, provided the result is set to type Text (numbers do not have leading zeros).

---

I should add that this will also work with a Number result (provided it's not formatted as Decimal), since Filemaker is pretty tolerant regarding what can be entered into a Number field. But eventually, if there are leading zeros then the real type is Text, and it would be better to stick to that.

Edited by Guest

Share this post


Link to post
Share on other sites

I know this has been solved already, but here is another way to accomplish this:

Right ( "00" & Number ; 2 )

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

×

Important Information

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