>Well, the Cancel button Default Property is .F. . I am able to select it with the mouse, even when the employee code field of the grid has focus. When I select the Cancel button, is when the system window for verifying my Cancel choice comes up.... and the hang-up.
>
>I guess I am forced to do some fancy coding to DISABLE the Cancel button while the Employee Code has focus.
>
>Thanks!
Tommy,
Actually, you can put some code in the VALID() that can check a couple of things:
* Is the mouse currently over the Cancel button?
* Does the Cancel button the current control?
Then, only if those two tests fail do you do your validation code.
_________________________________
There are 2 types of people in the world: