Information générale
Catégorie:
Codage, syntaxe et commandes
Unbind the control from the date field and make it a character type by clearing the Value property. You could then put your code in the Valid() event. You would, of course, have to manualy validate that the entered date is valid and you will have to get/save the value from/to the field.
HTH
>I read some posts about a date validation problem, mainly, the date is validated before the valid event in the textbox. Well, I'm also grappling with this problem. I've set set up a bit of code to autocomplete the date for the user, ie: they enter 02/31/1999 it would change it to 02/28/1999. I've got this code set up in the valid() event, but it never fires if they enter an invalid date....what to do?? Anyone have any solutions/suggestions?
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement