Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Force UPPERCASE

Status
Not open for further replies.

jahlmer

Technical User
Aug 23, 2000
143
US
Quick Question:
How do you force uppercase in a field on a form?

For instance, lowercase data is entered, and is then converted to uppercase when the record is saved.

Thanks
 
In the Controls ControlSource put UCASE(FieldName). That will make Uppercase whenever the control loses focus.
 
Another way is to place this code in the keypress event of the text box:

KeyAscii = Asc(UCase(Chr(KeyAscii)))

That automatically converts any character to UPPERCASE as the person types.
Joe Miller
joe.miller@flotech.net
 
Thanks a lot! You know, sometimes it's hard asking questions when you know you can figure it out, but thanks for your help!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top