1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| Private Sub Valider_Click()
If Champs1.Text = "" Then
MsgBox "Le champs 1 est nécessaire à l'application et n'a pas été rempli.", vbOKOnly + vbInformation, "Champs manquants ou incorrects"
Exit Sub
End If
If Champs2.Text = "" Then
MsgBox "Le champs 2 est nécessaire à l'application et n'a pas été rempli.", vbOKOnly + vbInformation, "Champs manquants ou incorrects"
Exit Sub
End If
'...
If ChampsN.Text = "" Then
MsgBox "Le champs N est nécessaire à l'application et n'a pas été rempli.", vbOKOnly + vbInformation, "Champs manquants ou incorrects"
Exit Sub
End If
' <Réaliser ici les actions en cas de données d'entrée correctes>
Unload Saisie
End Sub |