Hi, i am trying to write some code to generate a product code, then on another page i want to type the product code back in to then decode to the right data.
I have 3 fields, Product_ID, Ref, Price...
Product_ID can be values of 1 to 17
Ref is a 5 digit number
I want to convert a price to a letter system such as..
0 = A
1 = B
2 = C
etc..
And have the following positions in the code...
Th H T U D
Which is Thousands, Hundreds, Tens, Units and Decimals
So if i have the following data..
Product_ID = 3
Ref = 12765
Price = 10.50
I want the code to look like...
0312765AABAF
Hope all this makes sence!
Please can anyone help!
Many thanks,
Brian
I have 3 fields, Product_ID, Ref, Price...
Product_ID can be values of 1 to 17
Ref is a 5 digit number
I want to convert a price to a letter system such as..
0 = A
1 = B
2 = C
etc..
And have the following positions in the code...
Th H T U D
Which is Thousands, Hundreds, Tens, Units and Decimals
So if i have the following data..
Product_ID = 3
Ref = 12765
Price = 10.50
I want the code to look like...
0312765AABAF
Hope all this makes sence!
Please can anyone help!
Many thanks,
Brian