<< I looked at SET KEYMAP but that only reassigns keys. >> You can use SET KEYMAP to capture the F2 key and map it so something else. The trick is to figure out what to map it to in order to accomplish your goal.
I suggest dropping a button on your form that contains the EEP code you want. Set the caption of the button to have an accelerator character (eg, set it to &Save And Add). Then use: SET KEYMAP [F2] = [ALT]S in your form startup. This will have the effect of "clicking" the button when the user hits [F2]. Remember to SET KEYMAP [F2] OFF in the form's ON CLOSE EEP, or you will have a very confused user. -- Larry

