With A97-SR2 forms I want to ask the user whether or not to save a changed record or cancel closing when he pressed Ctrl+F4 or clicked the close-button. But even if he cancels saving during Form_BeforeUpdate (being triggered automatically by closing the form) the record somehow does undo the editing and looses it's dirty-state before the form enters Form_Unload. Thus it is not possible to cancel the unload event depending on the dirty state which is what I would have liked to do:

Private Sub Form_Unload(Cancel As Integer)
Cancel = Me.Dirty
End Sub

Any suggestions?