Upper Case Data acceptance irrespective of CAPS Lock status

G

Guest

I want my data should be entered (in text box object) only in capital letters
irrespective of Caps Lock status. Is it possible??????
 
P

Peter Hibbs

Vikas,

Add the following code to the KeyPress event of your Text box.

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

HTH

Peter Hibbs.
 
G

Guest

Set the format property of the textbox to > (greater-sign). That should
present tha data as you wish no matter the caps-lock.

hth
 
J

John W. Vinson

Set the format property of the textbox to > (greater-sign). That should
present tha data as you wish no matter the caps-lock.

hth

Just note that this format *displays* the data in all caps. What's actually
stored in the table is what's typed, as typed - lower case, upper case or
mixed case as the case may be.

John W. Vinson [MVP]
 
G

Guest

Hi John,

I know the point you are making. I just assumed poster wanted capitals in
the textbox as shown on the form..
 

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