can i press enter to check a check box in access

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have three check boxes, and I want to make it easy on the person using it,
so that when she tabs through the check boxes, can she hit enter to check the
box, and then tab on, instead of using the mouse click to check the box???
thx
jimmy
 
I have three check boxes, and I want to make it easy on the person using it,
so that when she tabs through the check boxes, can she hit enter to check the
box, and then tab on, instead of using the mouse click to check the box???
thx
jimmy

Use the space bar to toggle the check box value true or false, not the
Enter key.
 
You can use the KeyDown event of the field to check which key is pressed, and
change the value if the enter key is pressed

Private Sub FieldName_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = 13 Then
Me.FieldName = Not Me.FieldName
End If

End Sub
 
Back
Top