Shortcut Keys CTRL+APOSTROPHE events

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
 
A

Allen Browne

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.
 
S

SS

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.
 
Top