I actually never used Close event. I normally disable the X close button and use command button to control closing. So my suggestion was a quick brainstorm last night. Now I have chance to test and not having success with Close event. I tried BeforeUpdate and it almost works. Can't get rid of the 'Can't save record at this time' warning message.
Code:
Private Sub Form_BeforeUpdate(Cancel As Integer)
If IsNull(Me.Text40) Then
If MsgBox("Close", vbYesNo) = vbYes Then
Me.Undo
Cancel = True
End If
End If
End Sub
Annoying thing about Close and Unload events is they run even if you switch to Design view.
This all reminds me why I disable the X close button.