GJT
Registered User.
- Local time
- Today, 17:18
- Joined
- Nov 5, 2002
- Messages
- 116
I have a Closeform() function......when the user clicks this button - the Form_BeforeUpdate event gets called. Here I have a call to a SaveChanges() where the user gets the chance to Save / Cancel changes. The dialog box is Yes/No/Cancel. Hence :
Yes - default action i.e. Save
No / Cancel - do not save changes
However, when the SaveChanges function returns, for both No and Cancel the form closes. The Cancel event should cancel the CloseForm event and keep the form open. How can I do this?
Similarly, when changes are made to a subform - if the user pages to the next record, BeforeUpdate()/Savechanges() gets called. If the user selects Cancel / No, although changes are not saved (using acCmdUndo), the record does not page to the next as required.
Thanks in advance for any help.
Yes - default action i.e. Save
No / Cancel - do not save changes
However, when the SaveChanges function returns, for both No and Cancel the form closes. The Cancel event should cancel the CloseForm event and keep the form open. How can I do this?
Similarly, when changes are made to a subform - if the user pages to the next record, BeforeUpdate()/Savechanges() gets called. If the user selects Cancel / No, although changes are not saved (using acCmdUndo), the record does not page to the next as required.
Thanks in advance for any help.