well actually its not in a table its in a query, let me show you all i need to do with it...
I have a formula in excel that I am using to come up with the check digit in excel like this:
=MOD(10 - MOD( SUMPRODUCT(MID(A2, {1,2,3,4,5,6,7,8,9,10,11,12,13}, 1) * {3,1,3,1,3,1,3,1,3,1,3,1,3}), 10), 10)
where A2 is equal to 2001234567890
after the calculation i come up with =9
to do this calculation
Step 1. starting at the far left with the first digit, add all the characters in the odd number positions.
2+0+2+41+6+8+0=22
Step 2. Take the number found in step1 and multiply it by 3.
22x3=66
Step 3. starting on the left and beginning the the second digit, add all the characters in the even numbered position.
0+1+3+5+7+9=25
Step 4. Add the answer from steps 2 and 3
66 +25=91
step 5. the check digit is the number which, added to the value obtained in step 4 equals a number which is the next highest multiple of 10. I.E., if the value in step 4 were 68, the next multiple of 10 would be 70.
therefore, 68 +2=70, meaning, the check digit will be 2. if the number is 10, the check digit will be 0.
I want to do this calculation into a query, since in access is where i generate my Gtin numbers. (A2)
and as you can see im still in the first step.