IF VARTYPE(m.tcMode) = 'C' AND m.tcMode = 'Close' lcQuestion = "You have unsaved changes. Do you really want to close this form without saving?" ELSE lcQuestion = "You have unsaved changes. Do you really want to cancel them?" endif if messagebox(m.lcQuestion,4+16, 'Cancel Changes') = 7 && No - we want to save changes if not thisform.save() llReturn = .f. nodefault endif else ...which I guess it still bad. Since the default choice is 'Yes', it means we don't want to save changes.