Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Object reference to the current control
Message
Information générale
Forum:
Microsoft Office
Catégorie:
Access
Titre:
Object reference to the current control
Divers
Thread ID:
00664527
Message ID:
00664527
Vues:
51
The Me keyword refers to the current form if you are in a form. Is there a convenient way to get an object reference to the control whose method is executing, other than specifying the name as Me!controlname?

The reason is that I have a bunch of controls that need input values converted to upper case. I don't need any other input mask. I can put code like this:

Me!somecontrolname.Value = UCase(Me!somecontrolname.Value)

in every textbox, but there are a lot of them. What is the right way to do this?
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform