Private Sub ComboBox2_Click()
Select Case NomTableau
Case Is = "Tableau1"
For i = 1 To UBound(Tblclé)
If Tblcongé(i, 2) = ComboBox2.Value Then
ligneEnreg = i
For k = 1 To 8
Me.Controls("TextBox2" & k + 8) = Tblcongé(ligneEnreg, k + 1)
Next k
End If
Next i
Case Is = "Tableau2"
For i = 1 To UBound(Tblclé)
If Tblcongé(i, 2) = ComboBox2.Value Then
ligneEnreg = i
For k = 1 To 8
Me.Controls("TextBox2" & k + 8) = Tblcongé(ligneEnreg, k + 1)
Next k
End If
Next i
Case Is = "Tableau3"
For i = 1 To UBound(Tblclé)
If Tblcongé(i, 2) = ComboBox2.Value Then
ligneEnreg = i
For k = 1 To 8
Me.Controls("TextBox2" & k + 8) = Tblcongé(ligneEnreg, k + 1)
Next k
End If
Next i
End Select
ComboBox2.Value = Format(ComboBox2.Value, "ddd * dd mmm yyyy")
End Sub