Hi all.
Access 2010 with the navigation forms in use.
On all textboxes I have the Keypressed event.
But what I want, is a routine for the wole form. E.g.: When a form opens, and a user press Alt-R, then a contol.visible = true. If not, it stays unvisible.
How do I trap this for a whole form? KeyDown will not work - I have tried this routine:
Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = 114 Then
If Me.cmdRelease.Visible = True Then
Me.cmdRelease.Visible = False
Else
Me.cmdMarkAll.Visible = True
End If
End If
End Sub
This will not work..
When using: debug.print KeyAscii on a textbox.keypressed event, I found that Alt-r is 114.
Regards..
Access 2010 with the navigation forms in use.
On all textboxes I have the Keypressed event.
But what I want, is a routine for the wole form. E.g.: When a form opens, and a user press Alt-R, then a contol.visible = true. If not, it stays unvisible.
How do I trap this for a whole form? KeyDown will not work - I have tried this routine:
Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = 114 Then
If Me.cmdRelease.Visible = True Then
Me.cmdRelease.Visible = False
Else
Me.cmdMarkAll.Visible = True
End If
End If
End Sub
This will not work..
When using: debug.print KeyAscii on a textbox.keypressed event, I found that Alt-r is 114.
Regards..