Delete key repost

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top