How to get all fields to convert to Upper Case after being edited ?

A

Adam

Hi all,

when a user adds or edits a record I would like it to convert everything to
uppercase - is there a simple way of achieving this via code ?

cheers,

Adam
 
J

John Vinson

Hi all,

when a user adds or edits a record I would like it to convert everything to
uppercase - is there a simple way of achieving this via code ?

Well... ALL UPPERCASE IS UGLY AND HARD TO READ, and I really have to
question *why* you would want to do this except in very limited areas;
for instance, a two-letter State code in an address...

That said, you can put code in each text field's textbox's AfterUpdate
event:

Private Sub txtMyTextbox_AfterUpdate()
Me!txtMyTextbox = UCase(Me!txtMyTextbox)
End Sub

or, set the Form's KeyPreview property to True and use the KeyPress
event to detect each lower case letter and turn it to upper.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top