Good morning to the community
I would like to use the value of Numchaine in rematricule but I have an error message "non optional argument".
Someone would have an idea where the mistake came from.
I would like to use the value of Numchaine in rematricule but I have an error message "non optional argument".
Someone would have an idea where the mistake came from.
Code:
....
LeMatricule = Left(rst!NomNameMatrK,1, NumChaine)
............
Public Function NumChaine(chaine) As String
Dim A As String
A = InStrRev(chaine, "-") - 2
NumChaine = A
End Function