Bonjour à tous
Dans cette macro pourquoi je ne recupere pas le focus? le focus passe au TextBox suivant
Je vous remercie de votre aide
Private Sub TextBox7_AfterUpdate()
z = TextBox7.Value
TextBox7.Value = Format(CCur(TextBox7), "0.00 € ")
Label18.Caption = Format(CCur(Label16) - Format(CCur(TextBox7) + Format(CCur(Label25), "0.00 €")))
If z <= x Then
Else
MsgBox (TextBox7.Text & " est plus grand que le solde! de: " & Label22)
TextBox7.Text = ""
TextBox7.SetFocus
If TextBox7.Value = "" Then Cancel = True
Label18.Caption = ""
End If
If z >= x Then
Else
Frame3.Visible = True
Label18.Caption = Format(CCur(Label18), "0.00 €")
End If
End Sub
Dans cette macro pourquoi je ne recupere pas le focus? le focus passe au TextBox suivant
Je vous remercie de votre aide
Private Sub TextBox7_AfterUpdate()
z = TextBox7.Value
TextBox7.Value = Format(CCur(TextBox7), "0.00 € ")
Label18.Caption = Format(CCur(Label16) - Format(CCur(TextBox7) + Format(CCur(Label25), "0.00 €")))
If z <= x Then
Else
MsgBox (TextBox7.Text & " est plus grand que le solde! de: " & Label22)
TextBox7.Text = ""
TextBox7.SetFocus
If TextBox7.Value = "" Then Cancel = True
Label18.Caption = ""
End If
If z >= x Then
Else
Frame3.Visible = True
Label18.Caption = Format(CCur(Label18), "0.00 €")
End If
End Sub