Hi all
I have a simple form with 3 text boxes and 2 command buttons. The buttons are for saving records entered on the form and other is to close the form on the basis of a warning message box ie
What I would like to incorporate is for access to check to see if the save button has been clicked. If this condition is true then once the user hits close, they will not be prompted with a warning. The window closes as normal.
else if the save button has not been clicked, then display warning message.
Is this at all possible.
I have a me.dirty condition on the close button that will check if data has been inputted into the form however the user still gets a warning prompt about unsaved data being lost even though they have clicked save before close.
Is this at all possible
Thank you in advance.
I have a simple form with 3 text boxes and 2 command buttons. The buttons are for saving records entered on the form and other is to close the form on the basis of a warning message box ie
Code:
if confirm you wish to close = vbyes then close the window
else
cancel = true 'leave window open'
What I would like to incorporate is for access to check to see if the save button has been clicked. If this condition is true then once the user hits close, they will not be prompted with a warning. The window closes as normal.
else if the save button has not been clicked, then display warning message.
Is this at all possible.
I have a me.dirty condition on the close button that will check if data has been inputted into the form however the user still gets a warning prompt about unsaved data being lost even though they have clicked save before close.
Is this at all possible
Thank you in advance.