Bonsoir membres du forum,
heureux de vous retrouver !
Bon à savoir:
J'ai créé deux zones de textes "AppreciationMatiere" notée de 0 à 10/10 et "AppreciationMatiere2ndaire"
notée de 0 à 50. Les deux zones sont invisibles au départ.
Chaque zone d'appréciation s'affiche selon les notes des différents niveaux de classes.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12 Private Sub Détail_Format(Cancel As Integer, FormatCount As Integer) If Me.NiveauEvaluationFr = "Maternelle" Or Me.NiveauEvaluationFr = _ "CP1 A" Or Me.NiveauEvaluationFr = "CP2 A" Or Me.NiveauEvaluationFr = "CE1 A" Then Me.AppreciationMatiere.Visible = True ElseIf Me.NiveauEvaluationFr = "CE2 A" Or Me.NiveauEvaluationFr = _ "CM1 A" Or Me.NiveauEvaluationFr = "CM2 A" Then Me.AppreciationMatiere2ndaire.Visible = True End If End Sub
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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39 Public Function AppreciationMoyenne(Moy As Single) As String 'Appreciation utilisée pour une note et une moyenne If Not IsNull(Moy) Then If Moy = 10 Then AppreciationMoyenne = "Excellent" Else If Moy >= 9 Then AppreciationMoyenne = "Très bien" Else If Moy >= 8 Then AppreciationMoyenne = "Bien" Else If Moy >= 6 Then AppreciationMoyenne = "Assez bien" Else If Moy >= 5 Then AppreciationMoyenne = "Passable" Else If Moy >= 4.25 Then AppreciationMoyenne = "Insuffisant" Else If Moy >= 3.5 Then AppreciationMoyenne = "Faible" Else If Moy >= 0 Then AppreciationMoyenne = "Très Faible" End If End If End If End If End If End If End If End If End If End Function
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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50 Public Function AppreciationMoyenne_2ndaire(Moy As Single) As String 'Appreciation utilisée pour une note et une moyenne If Not IsNull(Moy) Then If Moy >= 20 Then AppreciationMoyenne_2ndaire = "Très Excellent" Else If Moy >= 18 Then AppreciationMoyenne_2ndaire = "Excellent" Else If Moy >= 16 Then AppreciationMoyenne_2ndaire = "Très Bien" Else If Moy >= 14 Then AppreciationMoyenne_2ndaire = "Bien" Else If Moy >= 12 Then AppreciationMoyenne_2ndaire = "Assez bien" Else If Moy >= 10 Then AppreciationMoyenne_2ndaire = "Passable" Else If Moy <= 9.99 Then AppreciationMoyenne_2ndaire = "Insuffisant" Else If Moy >= 8.5 Then AppreciationMoyenne_2ndaire = "Insuffisant" Else If Moy >= 7 Then AppreciationMoyenne_2ndaire = "Très Insuffisant" Else If Moy >= 4 Then AppreciationMoyenne_2ndaire = "Faible" Else If Moy >= 0 Then AppreciationMoyenne_2ndaire = "Très Faible" End If End If End If End If End If End If End If End If End If End If End If End If End Function
Quelle méthode employer afin de gérer les deux appréciations dans une seule zone de texte ?
Cordialement.













Répondre avec citation





















Partager