1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
| 'bouton suivant
Private Sub CommandButton2_Click()
If CSng(Replace(TextBox34.Value, ".", ",")) > 400 Then
MsgBox "Vérifier votre valeur", vbCritical, "Lecture avant"
TextBox34.SetFocus
ElseIf CSng(Replace(TextBox39.Value, ".", ",")) > 400 Then
MsgBox "Vérifier votre valeur", vbCritical, "Lecture avant"
TextBox39.SetFocus
ElseIf CSng(Replace(TextBox35.Value, ".", ",")) > 400 Then
MsgBox "Vérifier votre valeur", vbCritical, "Lecture arrière"
TextBox35.SetFocus
ElseIf CSng(Replace(TextBox39.Value, ".", ",")) > 400 Then
MsgBox "Vérifier votre valeur", vbCritical, "Lecture arrière"
TextBox39.SetFocus
ElseIf CSng(Replace(TextBox37.Value, ".", ",")) > 200 Then
MsgBox "Vérifier votre valeur", vbCritical, "Angle vertical"
TextBox37.SetFocus
ElseIf CSng(Replace(TextBox41.Value, ".", ",")) > 200 Then
MsgBox "Vérifier votre valeur", vbCritical, "Angle vertical"
TextBox41.SetFocus
ElseIf TextBox34.Value = "" Then
MsgBox "Il manque des informations", vbCritical, "Informations manquantes"
TextBox34.SetFocus
ElseIf TextBox36.Value = "" Then
MsgBox "Il manque des informations", vbCritical, "Informations manquantes"
TextBox36.SetFocus
ElseIf TextBox37.Value = "" Then
MsgBox "Il manque des informations", vbCritical, "Informations manquantes"
TextBox37.SetFocus
ElseIf TextBox38.Value = "" Then
MsgBox "Il manque des informations", vbCritical, "Informations manquantes"
TextBox38.SetFocus
ElseIf TextBox39.Value = "" Then
MsgBox "Il manque des informations", vbCritical, "Informations manquantes"
TextBox39.SetFocus
ElseIf TextBox40.Value = "" Then
MsgBox "Il manque des informations", vbCritical, "Informations manquantes"
TextBox40.SetFocus
ElseIf TextBox41.Value = "" Then
MsgBox "Il manque des informations", vbCritical, "Informations manquantes"
TextBox41.SetFocus
point2.Hide
hauteur2p.Show
End If
End Sub |
Partager