P
pubdude2003 via AccessMonster.com
I prepared this bit of code over a year ago and it works fine on my computer.
However I have recently been trying to trap a "~" (tilde) symbol to do a
quick form open and can't seem to get it to work.
Question one is how do I trap the "~" key?
And question two is can anyone explain why this is working? I don't appear to
be trapping the correct keycodes... but I must be, it's working fine on my
machine, Access 2003 in XP
Case 111, 191 'Divide
KeyCode = 0
SendKeys "{tab}"
SendKeys "/"
Case 106 'Multiply
KeyCode = 0
SendKeys "{tab}"
SendKeys "*"
Case 107 'Addition
KeyCode = 0
SendKeys "{tab}"
SendKeys "{+}"
Case 109, 189 'Minus
KeyCode = 0
SendKeys "{tab}"
SendKeys "{-}"
Any help would be appreciated!
However I have recently been trying to trap a "~" (tilde) symbol to do a
quick form open and can't seem to get it to work.
Question one is how do I trap the "~" key?
And question two is can anyone explain why this is working? I don't appear to
be trapping the correct keycodes... but I must be, it's working fine on my
machine, Access 2003 in XP
Case 111, 191 'Divide
KeyCode = 0
SendKeys "{tab}"
SendKeys "/"
Case 106 'Multiply
KeyCode = 0
SendKeys "{tab}"
SendKeys "*"
Case 107 'Addition
KeyCode = 0
SendKeys "{tab}"
SendKeys "{+}"
Case 109, 189 'Minus
KeyCode = 0
SendKeys "{tab}"
SendKeys "{-}"
Any help would be appreciated!