Thanks rkc. I think I can work with that.
Gord
"rkc" <rk*@rkcny.comwrote in message
news:81**********************************@l64g2000 hse.googlegroups.com...
On Sep 27, 1:06 pm, "Gord" <x1gor...@telus.netwrote:
How does one detect (in code) when the Delete key has been pressed. The
KeyPress event doesn't respond to this keystroke.
Thanks,
Gord
Trap for a Keycode value of vbKeyDelete in the KeyUp event of a
particular control or the form itself depending on what you're up to.
You will have to set the form's key preview property to yes to trap
it at form level.