XelaIrodavlas
Registered User.
- Local time
- Today, 17:00
- Joined
- Oct 26, 2012
- Messages
- 174
Hello all,
I'm having an issue with some code designed to navigate a continuous form - it's your typical arrow key navvi, up goes up a record, right key tabs across, etc. All was working fine, when, inexplicably, the keycode for left stopped working. Here's the code:
I have tested this in other forms and it works perfectly - and the other keys for up, down, right (KeyCode = 9) all work fine. Preview Keys is on and the event triggers in the Form's KeyDown event.
I checked the new keycode value on the next line after changing it (using Msgbox KeyCode), and it reads as 0!
Anyone experienced anything like this before? There must be something else at work here, but I cant think of what...
Thanks ^^
I'm having an issue with some code designed to navigate a continuous form - it's your typical arrow key navvi, up goes up a record, right key tabs across, etc. All was working fine, when, inexplicably, the keycode for left stopped working. Here's the code:
Code:
If KeyCode = 37 Then
KeyCode = Shift And 9
Exit Sub
End If
I have tested this in other forms and it works perfectly - and the other keys for up, down, right (KeyCode = 9) all work fine. Preview Keys is on and the event triggers in the Form's KeyDown event.
I checked the new keycode value on the next line after changing it (using Msgbox KeyCode), and it reads as 0!
Anyone experienced anything like this before? There must be something else at work here, but I cant think of what...
Thanks ^^