Information générale
Catégorie:
Codage, syntaxe et commandes
>I need the Valid event to fire just like the valid
>event
>for the text box as the person is leaving.
>Putting the
>valid code inside the When event does not take
>into account
>that the person might have changed something. So
>If they
>TAB out I need the Valid event to fire
>If they change the data I need it to fire. So far
>the
>Valid only fires if they look or change the data
>in the list.
Maybe you should try keeping all valididity checks in the valid
method, and then specifically call the valid method from the lost focus method. It's kind of a "hack" fix, but it should work.... That should fire whenever they tab out, click out, hit enter etc. You run the risk of firing the valid procedure twice in a lot of cases, but if your valid is small enough, it shouldn't matter.
Scot.
Précédent
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