Hi everyone:
I have a form and I want when an analyst types in the textbox that the words are capital letters. Is there a way to do that without having to tell them to place there caps lock on the keyboard.
Thanks
Zishan
I'm not to sure in which On_event(maybe the On Enter of the control) who should put this but
to uppercase a text just do the following code
Me![yourControl] = UCase(Me![yourControl])
just place a > in the format property of the field in the table and the same in the format property of the text box in the form and it should do the trick.
having it only in the form will display as caps, but will store as lower case, having it in the table o=alone will store as caps but display as it was entered, having it in both will display and store as caps.
for more information on this place your cursor in the INPUT MASK propeerty in the table design view and press f1, this should bring up help on this topic.
What Kherozen mentioned works too, as a replacement for a > being placed in the text box on the form, however it will still store the data in lowercase.
You can place that code on the before update, after update and on Exit events
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.