Force Response to Uppercase Only

G

Gary Miller

Greg,

Use the UCase() function in the AfterUpdate event of your
text box...

Me!YourTextboxName = UCase(Me!YourTextboxName)

--

Gary Miller
Gary Miller Computer Services
Sisters, OR
________________________
 
B

Bruce M. Thompson

How do I force a response to be Uppercase only

In addition to Gary's solution, you can force uppercase as the user types with
code in the control's "KeyPress" event procedure:

'**********EXAMPLE START
Private Sub txtUpper_KeyPress(KeyAscii As Integer)
KeyAscii = Asc(UCase(Chr(KeyAscii)))
End Sub
'**********EXAMPLE END
 
F

fredg

Greg said:
How do I force a response to be Uppercase only

Greg

Greg,
Don't bother.
Let the entry be however the user wishes to enter it.
Code the AfterUpdate event of that control:

[ThisControl] = UCase([ThisControl])
 

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