combo1.setfocus if combo1.text =" " then combo2.setfocus if combo2.text =" " then combo3.text = "mavaleur" end if end if
sub text1_gotfocus() text2.setfocus if text2.text .... end sub sub text2_gotfocus() text1.setfocus if text1.text .... end sub
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question1°)-> Private Sub Jour_gotfocus()<-5°) on revient là ! lOl, etc... If JourDeja 1 Or moisencour 1 Then GoTo Form_Open2_Exit End If 2°)-> Me.Mois.SetFocus If Me.Mois.Text = "" Then Mon action End If Annee.SetFocus If Annee.Text = "" Then Mon action Mois.SetFocus If Mois.Text = Mon test Then Me.Jour.RowSource = "Select [Jour].[31Jour] From Jour;" GoTo Form_Open_Exit End If Mois.SetFocus If Mois.Text = Mon test Then Mon action GoTo Form_Open_Exit End If Mois.SetFocus If Mois.Text = Mon test Then Mon action GoTo Form_Open_Exit End If GoTo Form_Open_Exit End If Annee.SetFocus If (Mon test) Then Mois.SetFocus If Mois.Text = Mon test Then Mon action GoTo Form_Open_Exit End If If Mois.Text = . . . . . . Else Mois.SetFocus If Mois.Text = . . . Then . . . End If Mois.SetFocus If Mois.Text = . . . Then . . . End If Mois.SetFocus If Mois.Text = . . . Then . . . End If GoTo Form_Open_Exit End If Me.Jour.SetFocus Form_Open_Exit: JourDeja = 1 Me.Jour.SetFocus Form_Open2_Exit: JourDeja = 0 MoisDeja = 0 Exit Sub End Sub 3°)-> on arrive ici Private Sub Mois_gotfocus() If MoisDeja = 1 Then GoTo Form_Open2_Exit End If 4°)-> on donne le focus a "jour" pour le tester: Me.Jour.SetFocus If Me.Jour.Text > . . . Then Jour.Text = "" GoTo Form_Open_Exit End If Form_Open_Exit: MoisDeja = 1 Me.Mois.SetFocus Form_Open2_Exit: MoisDeja = 0 JourDeja = 0 Exit Sub End Sub