not sure where i picked up the habit of throwing a # in. Im pretty sure totext({field},"00000") works as well
explanation from help file:
Represents numerical digits or zeros (0).
When the original number is converted, 0 characters are ignored unless the number of 0 characters in the format string extends beyond the number of significant digits in the original value. Then, for every additional 0 that appears, a zero is added to the string.
_____________________________________
Crystal Reports 2008 and XI
Intersystems Cache 2012 ODBC connection