P
Pete Provencher
Access 2000
I'm attempting to create a new field with a number that can have from 1 to 3
digits. If it has one digit I want to add two zeros to the beginning of the
number. If it has 2 digits I want to add 1 zero to the beginning of the
number and if it has 3 digits I want to leave it alone.
Here is the formula that I have tried with no success,:
IIf(Len([parcelnumber])>2,[parcelnumber]),(IIf(Len([parcelnumber])>1),"0" &
[parcelnumber]), IIf(Len([parcelnumber])>0,"00" & [parcelnumber]))
Hope someone can show me the errors of my way.
Pete Provencher
I'm attempting to create a new field with a number that can have from 1 to 3
digits. If it has one digit I want to add two zeros to the beginning of the
number. If it has 2 digits I want to add 1 zero to the beginning of the
number and if it has 3 digits I want to leave it alone.
Here is the formula that I have tried with no success,:
IIf(Len([parcelnumber])>2,[parcelnumber]),(IIf(Len([parcelnumber])>1),"0" &
[parcelnumber]), IIf(Len([parcelnumber])>0,"00" & [parcelnumber]))
Hope someone can show me the errors of my way.
Pete Provencher