Another way to do it is to go to the properties of the text box, go to the Format tab, then put an > in the Format property. If the user enters a lower case, it is forced to upper case when the user tabs or exit the text box.
Be careful though, it still stores the case as the user entered the data.
You could also put this code in the FORM's Key Press event and set the KeyPreview property to Yes for the form. Now any text box you type in will show and be store as all caps and you only have to insert the code once.
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.