How do I format a number with leading 0's

  • Thread starter Thread starter Tony Williams
  • Start date Start date
T

Tony Williams

I have a calculated number control on a form that I want to have leading
zeros. The control concatenates two other controls and the formula is
=[clientnbr] & "/" & [invnbr]

I want the end result to look like this

0060/0023

How do I do that?
Thanks
Tony
 
I have a calculated number control on a form that I want to have leading
zeros. The control concatenates two other controls and the formula is
=[clientnbr] & "/" & [invnbr]

I want the end result to look like this

0060/0023

How do I do that?
Thanks
Tony

=Format([clientmbr],"0000") & "/" & Format([invnbr],"0000")
 
If ClientNbr = 60 and InvnNbr = 23...

= "00" & CStr(ClientNbr) & "/" & "00" & CStr(InvnNbr)

Al Camp
 
Back
Top