>I have added several method in a formset to do Add, delete ,.etc
>and I want to use KeyPress event to execute that method so I set the form's KeyPreview property to .T.
>
>I want to execute that method with Ctr + INSERT or Ctr + DELETE
>and many more
>
>But when the form is running and I press the keyboard with that combination Key,... the method doesn't work
>
>Then I tried other approach with ON KEY LABEL but it's not work either,...
>
>Anybody have suggestions,..?
>
>TIA
Set a breakpoint in the debugger just on the second line of your form.keypress, and see what keyboard codes you actually get. They may not be what you expect them, judging by the table in the help for InKey(). I've tried to trap for ctrl+k, and the keycode wasn't the expected 107 with nAltShiftCtrl of 2, it was 11,2. You could alternatively put one "Wait Window str(nKeyCode,3) time 3" instead of the breakpoint.