By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,609 Members | 3,812 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,609 IT Pros & Developers. It's quick & easy.

Solution for : Access97 SendKeys command disables Numlock....

P: n/a
Every time I used the Sendkeys command in my application the "Numlock"
turned off and I couldn't use the keypad to hit numbers......

The old code was:
Private Sub Command1_Click()
SendKeys "{DOWN}"
SendKeys "^{END}"
SendKeys "{TAB}"
End Sub

So.....I decided to do the following:

Private Sub Command1_Click()
SendKeys "{DOWN}"
SendKeys "^{END}"
SendKeys "{TAB}", True 'keystrokes must be processed before
control is
'returned to the procedure.

SendKeys Chr$(144) 'Turn the "NUmlock" ON again
End Sub

I know that I have to avoid the Sendkeys statement but if there is no
other way.....this solution should help....

George.......
Nov 13 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
See also

http://www.mvps.org/access/bugs/bugs0004.htm

--
Terry Kreft
MVP Microsoft Access
"George" <gk***@softhome.net> wrote in message
news:81**************************@posting.google.c om...
Every time I used the Sendkeys command in my application the "Numlock"
turned off and I couldn't use the keypad to hit numbers......

The old code was:
Private Sub Command1_Click()
SendKeys "{DOWN}"
SendKeys "^{END}"
SendKeys "{TAB}"
End Sub

So.....I decided to do the following:

Private Sub Command1_Click()
SendKeys "{DOWN}"
SendKeys "^{END}"
SendKeys "{TAB}", True 'keystrokes must be processed before
control is
'returned to the procedure.

SendKeys Chr$(144) 'Turn the "NUmlock" ON again
End Sub

I know that I have to avoid the Sendkeys statement but if there is no
other way.....this solution should help....

George.......

Nov 13 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.