Why the cdoe not control the condition <> in the two case!!!!
See image.
Tks.
Code: Select all
CC_EST = ""
CC_EST = Trim(CC_DAILY_RS("DIVISA"))
If CC_EST <> "EUR" Or CC_EST <> "EU1" Then
GAF_RS("PRODOTTO") = "CONTI CORRENTI ESTERO"
End If
Code: Select all
CC_EST = ""
CC_EST = Trim(CC_DAILY_RS("DIVISA"))
If CC_EST <> "EUR" Or CC_EST <> "EU1" Then
GAF_RS("PRODOTTO") = "CONTI CORRENTI ESTERO"
End If
as usual TKS!HansV wrote:The condition CC_EST <> "EUR" Or CC_EST <> "EU1" will always be true, for if CC_EST is equal to "EUR", it is not equal to "EU1" and vice versa.
I think you want
If CC_EST <> "EUR" And CC_EST <> "EU1" Then