J
Jim Aksel
I am attempting to create a 7 digit unique ID field from a formula is a
custom text field (ie: Text1)The specified format:IPTnnnn where IPT is a
three character representation of the file name and nnnn is the UniqueID
number. To maintain 7 characters, I must place leading 0's into the UniqueID
field --- here's my formula:
"SSE"+choose(len([Unique ID]),"000","00","0","")+str([Unique ID])
Where here the file is SSE. The choose function appends the appropriate
number of leading 0's on to the UniqueID so it is always four digits.
The result is a leading space before the UniqueID:
SSE 1345 should be SSE1345
SSE0 144 should be SSE0144
SSE00 12 should be SSE0012
SSE000 3 should be SSE0003
Any ideas?
custom text field (ie: Text1)The specified format:IPTnnnn where IPT is a
three character representation of the file name and nnnn is the UniqueID
number. To maintain 7 characters, I must place leading 0's into the UniqueID
field --- here's my formula:
"SSE"+choose(len([Unique ID]),"000","00","0","")+str([Unique ID])
Where here the file is SSE. The choose function appends the appropriate
number of leading 0's on to the UniqueID so it is always four digits.
The result is a leading space before the UniqueID:
SSE 1345 should be SSE1345
SSE0 144 should be SSE0144
SSE00 12 should be SSE0012
SSE000 3 should be SSE0003
Any ideas?