>Just a novice question:
>
>On a form that displays a single record with row buffering on, I can successfully determine whether or not the current record has been edited, appended, or whatever.
>
>I can therefore control all aspects of saving/not saving changes to the current record except for when the user closes the form using the window close button (X button).
>
>Where do I put the method to ask the user whether s/he wishes to save changes when s/he has clicked the window close button - I tried the form release method but that didn't work - at the moment the row is automatically updated when the close button is clicked, regardless of whether the user wants it saved or not!
>
>TIA
The QueryUnload event. This fires whenever a user attempts to close a form via the Close button. It is not called if you explicitly call the Release method.
Issuing a NODEFAULT in the QueryUnload will prevent the form from closing.
Larry Miller
MCSD
LWMiller3@verizon.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao