Learning by pecking away....
- Local time
- Today, 14:14
- Jun 26, 2007
Hello, I have a database that has on click events in some textboxes and they have to be used. The problem I have is I have an employee that uses the Keyboard TAB and the keyboards arrow keys to get around this and even being told not to they continue to do so. So I needed to disable these on my form (Tab and arrow keys) I am able to disable the tab but how do I stop the arrow keys? Can someone please show me an example from my code below? Thanks!!!
Private Sub Form_Load() Me.KeyPreview = True End Sub Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer) Select Case KeyCode Case vbKeyTab KeyCode = 0 MsgBox "The Tab feature has been removed to prevent manual entries instead of using popup box entries!!", vbCritical, "Tab Disabled" End Select End Sub