S stu_c Registered User. Local time Today, 10:19 Joined Sep 20, 2007 Messages 494 May 27, 2022 #1 Hi all I have reference numbers such as 12345/89 iI want an if query to say if <7 then put leading zeros etc eg: 123/89 changes to 00123/89 or 23/56 to 00023/56
Hi all I have reference numbers such as 12345/89 iI want an if query to say if <7 then put leading zeros etc eg: 123/89 changes to 00123/89 or 23/56 to 00023/56
arnelgp ..forever waiting... waiting for jellybean! Local time Today, 17:19 Joined May 7, 2009 Messages 20,355 May 27, 2022 #2 Expr1: String(7-Len(Number),"0") & Number
Minty AWF VIP Local time Today, 10:19 Joined Jul 26, 2013 Messages 10,670 May 27, 2022 #3 Is this for display purposes only? If it is you can format the control on a form to display leading zero's.
Is this for display purposes only? If it is you can format the control on a form to display leading zero's.
The_Doc_Man Immoderate Moderator Staff member Local time Today, 04:19 Joined Feb 28, 2001 Messages 30,474 May 27, 2022 #4 Minty, would that format string work for text? Because his numbers include a virgule (/) in his examples.
Minty, would that format string work for text? Because his numbers include a virgule (/) in his examples.
Minty AWF VIP Local time Today, 10:19 Joined Jul 26, 2013 Messages 10,670 May 27, 2022 #5 Good spot @The_Doc_Man . I think you may need to use something like 000000\/00