Private Sub Tb1_AfterUpdate()
If WorksheetFunction.CountIf(Sheets("BD").Range("A:A"), Me.Tb1.Value) <> 0 Then
With Me
.Tb2 = Application.WorksheetFunction.VLookup(CStr(Me.Tb1), Sheets("BD").Range("Tbase"), 2, 0)
.Tb3 = Application.WorksheetFunction.VLookup(CStr(Me.Tb1), Sheets("BD").Range("Tbase"), 3, 0)
.Tb4 = Application.WorksheetFunction.VLookup(CStr(Me.Tb1), Sheets("BD").Range("Tbase"), 4, 0)
.Tb5 = Application.WorksheetFunction.VLookup(CStr(Me.Tb1), Sheets("BD").Range("Tbase"), 5, 0)
.Tb6 = Application.WorksheetFunction.VLookup(CStr(Me.Tb1), Sheets("BD").Range("Tbase"), 6, 0)
End With
Else
MsgBox "Cette immat n'existe pas", vbInformation + vbOKOnly, "Avertissement"
End If
End Sub