Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Object reference to the current control
Message
 
À
04/06/2002 12:22:23
Jason Dalio
Northern Interior Regional Health Board
Prince George, Colombie Britannique, Canada
Information générale
Forum:
Microsoft Office
Catégorie:
Access
Divers
Thread ID:
00664527
Message ID:
00664727
Vues:
20
>I assume you only want to work with text boxes so TypeOf limits this accordingly.
>
>
>Dim ctl As Control
>
>For Each ctl in Controls
>   If TypeOf ctl is TextBox Then
>      ctl.Text = UCase(ctl.Text)
>   End If
>Next 'ctl
>
I suppose I would put this code in the form.BeforeUpdate to clean up all the text. But it would be much nicer for the users to have their text cleaned up in each textbox.Lostfocus. I don't feel like typing similar but not identical code into every .Lostfocus event.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform