Shortcut Keys CTRL+APOSTROPHE events

  • Thread starter Thread starter SS
  • Start date Start date
S

SS

Hi All

Is there any way to run an event when the press a shortcut key Shortcut
CTRL+APOSTROPHE to copy data from a previous record .
Please note I am using Access XP.

Thanks in advance

Wael
 
Use the KeyDown event.
Examine the KeyCode to see if it is the apostrophe
Examine the Shift to see if Ctrl is down.

If this is for one control only, use the control's KeyDown.
If it is for all controls on a form, set the form's KeyPreview property on,
and use the KeyDown event of the form.

If you need to destroy the keystroke, set KeyCode = 0.
 
Hi Allen

Thanks a lot.

Wael

Allen Browne said:
Use the KeyDown event.
Examine the KeyCode to see if it is the apostrophe
Examine the Shift to see if Ctrl is down.

If this is for one control only, use the control's KeyDown.
If it is for all controls on a form, set the form's KeyPreview property
on, and use the KeyDown event of the form.

If you need to destroy the keystroke, set KeyCode = 0.
 
Back
Top