>Can anyone tell me how to trap the plus and minus keys on the key pad ?
>
>TIA
>Ian
Use the KeyPress event of the object in which you wish to trap it.
If you want to trap it in the form, set the form's KeyPreview=.T.
Trap for INLIST(nKeyCode, ASC("+"), ASC("-"))
Depending on what these keystrokes are doing, e.g., we use these in a date control to move forward and backward a day like in Quicken, you may want to also want to trap for INLIST(nKeyCode, ASC("="), ASC("_")) since these can be sent by the "+" and "-" keys respectively.
Insanity: Doing the same thing over and over and expecting different results.