arage
01-25-2001, 09:24 AM
Hi,
How do you enable the escape key on the current form so that when you press it, the form disappears?
Thanks!
How do you enable the escape key on the current form so that when you press it, the form disappears?
Thanks!
|
View Full Version : need to enable ‘esc’ key arage 01-25-2001, 09:24 AM Hi, How do you enable the escape key on the current form so that when you press it, the form disappears? Thanks! ntp 01-25-2001, 09:38 AM In the KeyPressed event do this: Private Form_KeyPressed(KeyAscii as Integer) If (keyAscii = vbKeyEscape) then docmd.close acform, me.name end if End sub ensure that the forms key preview property is set to yes otherwise this would not work ntp |