>Hi Borislav
>
>>No if you set it to be Default. But you could set Default = .f. for that button and Set KeyPreview = .t. for form and in KeyPress Event of the form put:
>
>It worked, yes and no. I am getting a 10 as key code, can't understand.
My mistake (or MS one, I don't know).
I think in KeyPres you should get the real key value and in addition modifiers, but I think wrong (as you see)
So change the code to:
nKeyCode = 10 AND nShiftAltCtrl = 2
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.