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
 

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