If you close the same form by using the Windows Close button, the Close action in a macro, or by clicking Close on the File menu, you do receive one of the following messages as expected:
The field 'tablename.fieldname' can't contain a Null value
because the Required property for this field is set to True.
Enter a value in this field.
Field 'tablename.fieldname' can't contain a Null value.