that does it exactly sorry it took so long to get back to you on this busy with somethign else but thanks alot.
Main Topics
Browse All Topicsok i posted this question before but without any really good information on it. i now have good information. so here is it.
i need check digit code, using mod 11, for an 11 digit number, the final(11th) digit is the check digit. the user will enter the 11 digit number into a text box, when they click the submit button the code should run on the number to validate it. it will tell whether or not check digit number is what it should be.
NCS MOD 11 CHECK DIGIT ROUTINE FOR 10 DIGIT NUMBER:
A SERIES OF MULTIPLICATIONS AND ADDITIONS IS PERFORMED, WITH THE
MULTIPLICATION RESULTS BEING ADDED TO A FINAL COUNTER. ON
COMPLETION OF ALL MULTIPLICATIONS, THE COUNTER ID DIVIDED BY 11,
AND 11 IS SUBTRACTED FROM THE REMAINDER. THE LAST DIGIT OF THIS
SUBTRACTION IS THE CHECK DIGIT.
EXAMPLE: FINDER NUMBER - TOTAL OF 11 POSITIONS RESULT
1438623406 C(CHECK DIGIT) 0 (INITIAL VALUE)
THE 10TH DIGIT IS MULTIPLIED BY 3 (6 X 3 = 18) + 18
------
18
THE 9TH DIGIT IS MULTIPLIED BY 5 (0 X 5 = 0) + 0
------
18
THE 8TH DIGIT IS MULTIPLIED BY 7 (4 X 7 = 28) + 28
------
46
THE 7TH DIGIT IS MULTIPLIED BY 9 (3 X 9 = 27) + 27
------
73
THE 6TH DIGIT IS MULTIPLIED BY 11 (2 X 11 = 22) + 22
------
95
THE 5TH DIGIT IS MULTIPLIED BY 13 (6 X 13 = 78) + 78
------
173
THE 4TH DIGIT IS MULTIPLIED BY 15 (8 X 15 = 120) + 120
------
293
THE 3RD DIGIT IS MULTIPLIED BY 17 (3 X 17 = 51) + 51
------
344
THE 2ND DIGIT IS MULTIPLIED BY 19 (4 X 19 = 76) + 76
------
420
THE 1ST DIGIT IS MULTIPLIED BY 21 (1 X 21 = 21) + 21
------
441
THIS RESULT IS DIVIDED BY 11: 441/11 = 40, WITH REMAINDER 1
11 IS SUBTRACTED FROM THE REMAINDER: 1 - 11 = -10
THE LAST DIGIT OF THIS SUBTRACTION (0) IS THE CHECK DIGIT
i hope that this helps. again its urgent. and i appreciate all the help. thanks in advance.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: wuttrainPosted on 2003-10-03 at 08:56:58ID: 9485668
this should help you get started. hope this helps
'iStartMultiply = 3, first value of the mulltiplier
'iStep = 2, the increment value
Function CheckDigit(strString As String, iStartMultiply As Integer, iStep As Integer) As Integer
Dim i As Integer
Dim iNum As Integer
Dim iProd As Long
Dim iSum As Long
Dim iRemainder As Integer
Dim iQuo As Long
Dim iResult As Integer
iSum = 0
For i = 10 To 1 Step -1
iNum = Mid(strString, i, 1)
iProd = iNum * iStartMultiply
iStartMultiply = iStartMultiply + iStep
iSum = iSum + iProd
Next i
iRemainder = iSum Mod 11
iQuo = iSum / 11
iResult = iRemainder - 11
CheckDigit = Right(Trim(Str(iResult)), 1)
End Function
Private Sub Command1_Click()
txtOutput.Text = CheckDigit(txtInput.Text, 3, 2)
End Sub