>I'm sorry, I read my original thread and I didn't explain myself properly. What I meant to say is that with these settings, if the user presses the
key, it will activate the cmdCancel.Click Event. It isn't working. If I try to use code like Set Escape on and On Escape Thisform.cmdCancel.Click(), I get a message that says "THISFORM can only be used in a method."
>
>Any other suggestions? I have tried to click the Cancel button while the program is running but it doesn't respond. Running out of ideas.
>
>TIA,
>
>Bill
Try to use
On Escape frmForm1.cmdCancel.Click() && assuming that frmForm1 is form name and you used NAME clause of DO FORM command
Edward Pikman
Independent Consultant