here is a little function that i use:
Function AddLeadingZeros(iLen, sStr)
sStr = CStr(sStr)
Do While Not Len(sStr) = iLen
sStr = "0" & sStr
Loop
AddLeadingZeros = sStr
End Function
you would call it like:
Dim sFormattedNumber
sFormattedNumber = AddLeadingZeros(5, CStr(numbertoformat))
note that the numbers become strings, and are no longer integers
[sig]<p>ray<br><a href=mailto:rheindl@bju.edu>rheindl@bju.edu</a><br><a href= > </a><br> [/sig]