asked on
ASKER
ASKER
ASKER
Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = 27 And Me.ActiveControl.Name = "ListView1" Then
Me.ListView1.SelectedItem.Selected = False
End If
End Sub
You would need to set the form's KeyPreview property to true for this to work.
ASKER
Be *sure* the Form's Key Preview is set to Yes.No need to do this.
Microsoft Access is a rapid application development (RAD) relational database tool. Access can be used for both desktop and web-based applications, and uses VBA (Visual Basic for Applications) as its coding language.
TRUSTED BY
Try using the KeyUp event instead.