>Put a check for the condition in the QueryUnload of the form. If it isn't met, return FALSE (with a message explaining why, of course). Be sure that the QueryUnload is always called when exiting. It IS called by the "X" in the upper right, but is NOT called if you have a ThisForm.Release() command. You have to add the call to QueryUnload yourself.
PMFJI Barbara, but I think you need a NoDefault in the Queryunload to stop it...
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.