Q: leading zero

J

JIM.H.

Hello,
I have a text field in my table that has numbers. How can I write a query
that puts some leading zeros for only numbers less than 3 digits. So if 1234
or 123 do not touch, if 12 make it 012. How can I do this?
Thanks,
Jim.
 
D

Douglas J. Steele

IIf(Len(CStr([MyNumber])) >2, CStr([MyNumber]), Format([MyNumber], "000")
 
Top