B
BeccySmith
I have a table [Table1], within that table I have a field
[Field1] which holds a ten digit number. The table is
already populated with data and is reguarly updated by
importing data into it.
I would like to have a validation check on the data within
Field1. The data in Field1 is made up of ten digits. The
last digit is a check digit based. The caluation for this
digit is as follows:
Step 1 - multiply each of the first nine digits by a
weighting factor as follows:
Digit Position (starting from Left) Factor
1 10
2 9
3 8
4 7
5 6
6 5
7 4
8 3
9 2
Step 2 - add the results of each multiplication together
Step 3- Divide the total by 11 and establish the remainder
Step 4 - subtract the remainder from 11 to give the check
digit.
How do I put this into a calculation within Access so that
when the result of the calculation do not match the
expected check digit that an error is thrown up?
[Field1] which holds a ten digit number. The table is
already populated with data and is reguarly updated by
importing data into it.
I would like to have a validation check on the data within
Field1. The data in Field1 is made up of ten digits. The
last digit is a check digit based. The caluation for this
digit is as follows:
Step 1 - multiply each of the first nine digits by a
weighting factor as follows:
Digit Position (starting from Left) Factor
1 10
2 9
3 8
4 7
5 6
6 5
7 4
8 3
9 2
Step 2 - add the results of each multiplication together
Step 3- Divide the total by 11 and establish the remainder
Step 4 - subtract the remainder from 11 to give the check
digit.
How do I put this into a calculation within Access so that
when the result of the calculation do not match the
expected check digit that an error is thrown up?