I have numbers of varying length in a field.
All values need to be 7 characters long and need zeros appended to left of existing number. So 41449 should be 0041449.
I have tried the following (based on other posts) and for some reason it won't add the zeros.
I am not sure what I am doing wrong. Can anyone help?
Thanks.
Solved! Go to Solution.
Ack! @MarqueeCrew @BenMoss I feel foolish. Of course I over-complicated it. Thank you!
Also: PadLeft needs the numeric value to be the length of the whole final string. So, if you are putting 2 chars on at the start, the length needs to be the current length plus 2, ie "2+Length([Field])". Otherwise, PadLeft() does nothing and seems to not be working.