D
Daniel M
I have a table with serial number data in it. We started the table with only
the last 6 digits. As a number the leading zeros were stripped. This was fine
for 1 product but we have since added products. ie: 02-6digits was a product
now we are adding 03-6digits as another product. In order to handle this we
simply added the 03 in front of the 6 digits for the other product. The zero
was stripped and we were left with 7 digits. Fine. anything 6 digits or less
was an 02- product.
We are now going to be scanning the barcodes in to the system and want to
record the whole number. Can someone help my come up with a script of some
kind to convert the existing data?
Examples of data
4001 to convert to 02-004001
201002 to convert to 02-201002
3000123 to convert to 03-000123
I know i have to convert it to a text field but i could use some help on
converting the existing data. We do not want to split the field into 2 as it
would break other forms/reports/tables. thanks.
the last 6 digits. As a number the leading zeros were stripped. This was fine
for 1 product but we have since added products. ie: 02-6digits was a product
now we are adding 03-6digits as another product. In order to handle this we
simply added the 03 in front of the 6 digits for the other product. The zero
was stripped and we were left with 7 digits. Fine. anything 6 digits or less
was an 02- product.
We are now going to be scanning the barcodes in to the system and want to
record the whole number. Can someone help my come up with a script of some
kind to convert the existing data?
Examples of data
4001 to convert to 02-004001
201002 to convert to 02-201002
3000123 to convert to 03-000123
I know i have to convert it to a text field but i could use some help on
converting the existing data. We do not want to split the field into 2 as it
would break other forms/reports/tables. thanks.