How can I add leading zeroes to a number? For example:
Dim stracctnumber as String stracctnumber = 987654321
If stracctnumber
stracctnumber
strAcct = Right("000000000000000" & strAcct, 15)
Note that concatenation is relatively 'expensive'. If this is just for display, rather than modifying the underlying value, consider using the Format() function.
Format()