Private Sub teSaisie_KeyDown(Index As Integer, KeyCode As Integer, Shift As Integer) Dim rcrdMax As ADODB.Recordset Set rcrdMax = New ADODB.Recordset Set rcrdMax = DataEnvironment1.cnACCESS.Execute("SELECT MAX(ID_LIBELLE) as NBINDEX FROM REF_LIBELLE WHERE ORDRE_TABLEAU < 100") If KeyCode = vbKeyReturn Then ' Si l'index est strictement inférieur à 16 If Index < rcrdMax!NBINDEX Then ' On passe au suivant teSaisie(Index + 1).SetFocus Else ' Sinon on passe à la selection du type comboType.SetFocus End If End If End Sub