This is how you do it...
STICK with what I told you to do :
In the control, set the Input mask as -
999999 or 000000 or ###### where:
0 Digit (0 to 9, entry required, plus [+] and minus [–] signs not allowed).
9 Digit or space (entry not required, plus and minus signs not allowed).
# Digit or space (entry not required; spaces are displayed as blanks while in Edit mode, but blanks are removed when data is saved; plus and minus signs allowed).
now in the After update of the control (make it a TEXT BOX called MyNumber
Sub MyNumber_AfterUpdate()
If not isnull(MyNumber) then
' this will format the number with leading zeros upto a length of 6,
' increase the no of zeros to increase the size of the number
MyNumber = Format(MyNumber, "000000")
End If
End Sub
Cut and paste the Sub above into the after update of the control. Make sure that the control name is changed to YOUR control name (if you did not call it MyNumber).
And that will work ... or your money back!
All the best
Mark