I would like to correct some data in my tables
My conditions:
If COMPTE=612210 and Extension<>"CFRN1" then EXTENSION="CFRN9"
If COMPTE=612210 and Extension<>"CFRN2" then EXTENSION="CFRN9"
.....
If COMPTE=612220 and Extension<>"CFRN4" then EXTENSION="CFRN10"
If COMPTE=612220 and Extension<>"CFRN10" then EXTENSION="CFRN10"
I use this code:
CODE
Select Case COMPTE
Case 612210: Select Case EXTENSION
Case Is <> "CFRN1" Or "CFRN2" Or "CFRN2" Or "CFRN2" Or "CFRN2": EXTENSION = "CFRN9"
End Select
Case 612220: Select Case EXTENSION
Case Is <> "CFRN4" Or "CFRN10": EXTENSION = "CFRN10"
End Select
End Select
But, as a result, the correction isn't done
What's the problem?
Could help me tu correct this code
I would not use queries please!!
Thank you