Bonjour,

J'ai un petit souci de condition, dont voici le code :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
If [Form_Prés-Fiche-client-courant_ASSOC].ASSOCINSTIT.Value Like "16*" And [Form_Prés-Fiche-client-courant_ASSOC].NOTES.Value Like "*FADOQ50*" Then
    If [Form_Prés-Fiche-client-courant_ASSOC].sommeprixht.Value < "50,00" Then
        CODEPRO.Value = "0,00$"
        CODEPRO1.Value = "0"
        ElseIf [Form_Prés-Fiche-client-courant_ASSOC].sommeprixht.Value >= "50,00" Or [Form_Prés-Fiche-client-courant_ASSOC].sommeprixht.Value < "100,00" Then
                CODEPRO.Value = "-5,00$"
                CODEPRO1.Value = "5"
        ElseIf [Form_Prés-Fiche-client-courant_ASSOC].sommeprixht.Value >= "100,00" Or [Form_Prés-Fiche-client-courant_ASSOC].sommeprixht.Value < "150,00" Then
                CODEPRO.Value = "-10,00$"
                CODEPRO1.Value = "10"
    End If
End If
Le code ne donne pas de promotion pour les montants inférieurs à 50$ => c'est parfait
Le code donne la promotion de 5$ pour les montant compris entre 50$ et 99.99$ => C'est parfait
Si la commande dépasse 100$, il ne donne pas le 10$ de réduction.

Je ne vois pas ce qui ne fonctionne pas.
Merci pour votre aide.