Hi,
Following fields are in my db:
[CodeBanque], char, 5
[CodeGuichet], char, 5
[NoCompte], char, 11
[CleRIB], char, 2
I need to concatenate those 4 fields and apply modulo 97 for Bank Account validation check. A msgbox must then appear with the result. (If = 0 it's OK. Else not.)
The problem is concatenating gives me a number of 23 digits.
I didn't find any datatype fitting for such long number. I always get "Overflow" message from Access.
This what I do:
Dim CheckAlgo
CheckAlgo = CLng(txtCodeBanque & txtCodeGuichet & txtNoCompte & txtCleRIB) Mod 97
If CheckAlgo = 0 Then
MsgBox "OK."
Else: MsgBox "Check the numbers again."
End If
I would be very happy to have this solved.
Thanx to everyone.
Natha
Following fields are in my db:
[CodeBanque], char, 5
[CodeGuichet], char, 5
[NoCompte], char, 11
[CleRIB], char, 2
I need to concatenate those 4 fields and apply modulo 97 for Bank Account validation check. A msgbox must then appear with the result. (If = 0 it's OK. Else not.)
The problem is concatenating gives me a number of 23 digits.
I didn't find any datatype fitting for such long number. I always get "Overflow" message from Access.
This what I do:
Dim CheckAlgo
CheckAlgo = CLng(txtCodeBanque & txtCodeGuichet & txtNoCompte & txtCleRIB) Mod 97
If CheckAlgo = 0 Then
MsgBox "OK."
Else: MsgBox "Check the numbers again."
End If
I would be very happy to have this solved.
Thanx to everyone.
Natha