SimoneRene
Registered User.
- Local time
- Today, 23:35
- Joined
- Mar 15, 2017
- Messages
- 58
Hi!
I have a form with two command buttons Save and Exit(close) both have event procedures that bring up prompt message box's e.g. Are you sure you want to save? OK or Cancel Buttons
The Exit button message box; Are you sure you want to exit without saving? Yes No buttons, only pops up if the Save button hasn't been clicked I used a Boolean function.
When the user clicks the Exit button (and hasn't clicked the Save Button) then clicks 'Yes' to question 'Are you sure you want to exit without saving?' A before update event runs and the record isn't saved.
The problem arises when the user clicks the Save button-Cancel then the Exit Button, the record IS saved to table and I don't want it to be.
So rather than using Boolean true false which determines if the button is clicked or not is there a way to detect the response from the button?
Thanks!
I have a form with two command buttons Save and Exit(close) both have event procedures that bring up prompt message box's e.g. Are you sure you want to save? OK or Cancel Buttons
The Exit button message box; Are you sure you want to exit without saving? Yes No buttons, only pops up if the Save button hasn't been clicked I used a Boolean function.
When the user clicks the Exit button (and hasn't clicked the Save Button) then clicks 'Yes' to question 'Are you sure you want to exit without saving?' A before update event runs and the record isn't saved.
The problem arises when the user clicks the Save button-Cancel then the Exit Button, the record IS saved to table and I don't want it to be.
So rather than using Boolean true false which determines if the button is clicked or not is there a way to detect the response from the button?
Thanks!