>Can anyone tell me how to trap the plus and minus keys on the key pad ?
>
>TIA
>Ian
You can set the KeyPreview property of your form to .T. and test for nKeyCode being 61 for = and 43 for + in the KeyPress event of the form. If you don't want those keys passed to the currently active control (e.g. textbox) then issue a NODEFAULT when you detect them.
HTH.
Larry Miller
MCSD
LWMiller3@verizon.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao