The value or the target field's data type? Your target field will need to be a string in order to retain the leading zeroes you are attempting to put there.
-craig
"You can never have too many knives" -- Logan Nine Fingers
How can your target column have a variable length? You 'zero pad' and right-align something to a fixed length. Either hard-code the length in the FMT function or explain why you can't.
-craig
"You can never have too many knives" -- Logan Nine Fingers