Not sure, but check if any forms' event occurs before LostFocus of the textbox, if it is so, you can have one property which can be set to true when closing the form and requery based on it.
Bye
Jayesh
>hi all
>
>i have a requery in vfp5.0 thats runs every time that my textbox "text1", lost focus ( all that its ok).
>
>but when i click on the close button i wanna that the requery dont be run when the lostfocus of my tetxbox occurs. (cause when i click on my close button the focus its on the text1 object,, so the requery runs increase the time to close the form)
>
>are there any tip to make it work ??
>
>TNX
- Jayesh