1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
| Private Sub Détail_Format(Cancel As Integer, FormatCount As Integer)
'Si niveau est égale à 1 (acquis), le label est VERT
If Me.NiveauEvaluation = 1 Then
Me.Image.Picture = CurrentProject.Path & "/vert.png"
'Si niveau est égale à 2 (acquis peu d'aide), le label est ORANGE
ElseIf Me.NiveauEvaluation = 2 Then
Me.Image.Picture = CurrentProject.Path & "/orange.png"
'Si niveau est égale à 3 (avec beaucoup d'aide), le label est ROUGE
ElseIf Me.NiveauEvaluation = 3 Then
Me.Image.Picture = CurrentProject.Path & "/rouge.png"
'Si niveau est égale à 4 (non acquis), le label est GRIS
ElseIf Me.NiveauEvaluation = 4 Then
Me.Image.Picture = CurrentProject.Path & "/gris.png"
'Si niveau est égale à 5 (non évalué), le label est JAUNE
ElseIf Me.NiveauEvaluation = 5 Then
Me.Image.Picture = CurrentProject.Path & "/jaune.png"
End If
End Sub |
Partager