G
Guest
I like to add a dirty control to my close commands similar to this for
particular records:
....
with me
iIf .Dirty = True Then
x = MsgBox("Would you like to save before exiting?", vbYesNoCancel)
Else: DoCmd.Close acForm, stDocName
End If
End With
If x = vbYes Then
call modCmdButtons_cmdSaveClose
ElseIf x = vbNo Then
call modCmdButtons_cmdUndoClose
End If
Basically, the modCmdButtons will either close the form normally - saving
the record, or it will Undo the record and then Close - not saving.
PROBLEM:
I have a form with two unrelated subforms on it - no relations whatsoever to
anything - on purpose.
I want to be able to do something similar to the above if EITHER of the
subforms have had any changes made (The mainform is simply a holder for the
two forms).
Is this possible?
particular records:
....
with me
iIf .Dirty = True Then
x = MsgBox("Would you like to save before exiting?", vbYesNoCancel)
Else: DoCmd.Close acForm, stDocName
End If
End With
If x = vbYes Then
call modCmdButtons_cmdSaveClose
ElseIf x = vbNo Then
call modCmdButtons_cmdUndoClose
End If
Basically, the modCmdButtons will either close the form normally - saving
the record, or it will Undo the record and then Close - not saving.
PROBLEM:
I have a form with two unrelated subforms on it - no relations whatsoever to
anything - on purpose.
I want to be able to do something similar to the above if EITHER of the
subforms have had any changes made (The mainform is simply a holder for the
two forms).
Is this possible?