Bonjour à tous,
Voici mon petit problème. Donc dans une formulaire j'ai 2 zones de texte. Chaque Zone de texte représente un pointage. Dépendamment du score j'attribus un statu :
1 = victoire
2 = défaite
3 = égalité
Toutefois, lorsque Seb gagne 10 à 8... Access attribut la victoire à Fred et non à Seb.
Voici mon code:
Merci de votre aide!
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23 If Forms![Game]![RemplacantS] = 0 Then Forms![Game]![StatutS] = 0 ElseIf Forms![Game]![Seb].Value > Forms![Game]![Fred].Value Then Forms![Game]![StatutS] = 1 ElseIf Forms![Game]![Seb].Value < Forms![Game]![Fred].Value Then Forms![Game]![StatutS] = 2 ElseIf Forms![Game]![Seb].Value = Forms![Game]![Fred].Value Then Forms![Game]![StatutS] = 3 End If If Forms![Game]![RemplacantF] = 0 Then Forms![Game]![BAFred] = Null Else: Forms![Game]![BAFred] = Forms![Game]![Seb] End If If Forms![Game]![RemplacantF] = 0 Then Forms![Game]![StatutF] = 0 ElseIf Forms![Game]![Fred].Value > Forms![Game]![Seb].Value Then Forms![Game]![StatutF] = 1 ElseIf Forms![Game]![Fred].Value < Forms![Game]![Seb].Value Then Forms![Game]![StatutF] = 2 ElseIf Forms![Game]![Fred].Value = Forms![Game]![Seb].Value Then Forms![Game]![StatutF] = 3 End If
Partager