Text Box Undo

K

Kiran

I am using the below code for disabling Ctrl+Z(Command for Undo) in the Form.
However what I see is “z†being typed when I try to use it. Is there a
solution for this. I need to use this because when the staff enters something
wrong in the text box and presses Ctrl Z all the data in the Text Box is
lost. I would be glad to know if there is an alternate way of implementing
this.

If Shift = acCtrlMask Then
Select Case KeyCode
Case 90
MsgBox ("You have selected Ctrl Z")
Case Else
End Select
End If
 

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