sendkeys

S

seeker52

At getfocus for a txt box I have
sendkeys "{CAPSLOCK}",TRUE and when i begin to type in
that box after it receives focus it does not type in
caps. Why what am I doing that needs to be done
differently?

seeker52
 
S

Sandra Daigle

I wouldn't use Sendkeys - it can cause unwanted behavior and there is
usually a better way. Instead, try using the After Update event of the
control to convert the text to uppercase:

Me.MyTextbox= StrConv(Me.myTextBox, vbUpperCase)
 
M

MacDermott

If you want your user to see the data going in as all caps, you might look
into using an input mask.

HTH
- Turtle
 
Top