I have a very weird situation . . . I have two different sytems which contain a UPC #. System 1 has the UPC set up correctly as an 11 digit number.
System 2 has the UPC set up as an 13 digit number. I need to take that number and convert it to match the 11 digit in the System 1 so that I can link them.
So far I am using LEFT(UPC,11) which works, BUT this number will only give me a return of 10 digits if there is a leading 0; therefore, I'm ending up with some numbers 11 digits and some 10.
Is there a code I can write which would count the number of digits and if there are only 10 it would add a leading 0?
System 2 has the UPC set up as an 13 digit number. I need to take that number and convert it to match the 11 digit in the System 1 so that I can link them.
So far I am using LEFT(UPC,11) which works, BUT this number will only give me a return of 10 digits if there is a leading 0; therefore, I'm ending up with some numbers 11 digits and some 10.
Is there a code I can write which would count the number of digits and if there are only 10 it would add a leading 0?