In the Field Calculator:
-
Select "Python" as your parser
-
Check "Show code block".
-
Paste the following into the code block
def leadZero(val):
if len(str(val)) == 7:
return str(0) + str(val)
else:
return str(val)
- In the bottom text block:
leadZero(!whatever_the_name_of_the_numeric_field_is!)