I am using the following code to warn users about missing data and asking them if they wish to proceed: Form - OnQueryCloseForm() : Boolean
IF CheckFields AND Modified THEN BEGIN
Modified := FALSE;
EXIT(CONFIRM('Do you want to close the form?'));
END;
Ideally, I would prefer to prevent the user from closing the form until the required data is entered… is this possible? Rick