>If a user clicks on the [X] in a windows 95 window, I want to be able to do some error checking and force the user to stay on the form if necessary
>
>I've tried putting code in .Destroy and .Unload which would do a 'NODEFAULT' if my conditions aren't met before exting the form, but no go...
>
>
>Any help would be appreciated - Thanx!
You missed one. putting a nodefualt in QueryUnload should do the trick.
Peter Stephens
Visual Records, Inc.
Lead Programmer for the general purpose record keeping system Visual Records. Written primarily in VFP 6.0 with a little C++.