delete key

  • Thread starter Thread starter Richard
  • Start date Start date
R

Richard

Hi I am trying to check if the form has been edited by this code:

Select Case KeyAscii
Case vbKeyTab

Case Else
Me.txtEdit = "Edit"
End Select

All wokrs well but the delete key. How would I set if the user presses the
delete key, me.txtEdit = "edit".

I tried this but to doesn't work:

Select Case KeyAscii
Case vbKeyTab

Case vbKeyDelete
Me.txtEdit = "Edit"
Case Else
Me.txtEdit = "Edit"
End Select

Thanks in advance
Richard
 
Back
Top