Access vba - how to turn on the keyboard NUMLOCK key

Every time I use Sendkeys "{ESC}" it turns off the keyboard NUMLOCK key.  Can I turn this back on using vba?
Answer
Answer

See: https://stackoverflow.com/questions/25977933/sendkeys-is-messing-with-my-numlock-key-via-vba-code-in-access-form it covers the subject very well and offers a couple different solutions.

PS: Why are you using SendKeys, it should be avoided at all cost as they are not reliable and in 99.9% of cases it can be coded without the need of SendKeys.  If you explain what you are using it for, we may be able to offer an alternative approach.

--
Daniel Pineault
Microsoft MVP 2010-2021

3 people found this reply helpful

·

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

 
 

Question Info


Last updated May 17, 2024 Views 6,476 Applies to: