OVH Cloud OVH Cloud

limite aux chiffres pairs

1 réponse
Avatar
Caro
Bonjour,

Comment puis-je limiter la saisie dans un champ aux chiffres pairs
uniquement ?

merci,
Caro

1 réponse

Avatar
Eric
Bonjour,

Peut-être avec quelque chose comme:
Private Sub Texte0_BeforeUpdate(Cancel As Integer)
If Me.Texte0 Mod 2 <> 0 Then
MsgBox "pas pair"
Cancel = True
End If
End Sub

Bonjour,

Comment puis-je limiter la saisie dans un champ aux chiffres pairs
uniquement ?

merci,
Caro



--
A+
Eric
http://www.mpfa.info/
Archives : http://groups.google.fr/group/microsoft.public.fr.access?hl=fr