Bonjour à tous,
J'ai un formulaire qui lors de l'erreur n° 3201 me provoque un avertissement : "Vous ne pouvez pas ajouter ou modifier un enregistrement car l'enregistrement connexe..."
Voulant personnaliser mon avertissement j'ai un code:
Mais impossible de retirer l'avertissement original d'Access.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10 Private Sub Form_Error(DataErr As Integer, Response As Integer) Dim Attention As Integer If DataErr = 3201 Then DoCmd.SetWarnings False Attention = MsgBox(" Veuillez valider !", vbOKOnly + vbExclamation, _ "Attention") Exit Sub End if End Sub
Comment faire? Quelqu'un a t-il une idée?
Merci d'avance
Partager