Hi All,
On the scrounge again.
I have a combo which I am using to look up values from a table.
What I would like to do is once an initial selection has been made using the combo, should a user then go to change the original selection at any time in the future, before committing to the change a yes/no message box will prompt the user to confirm they wish to proceed with the change (or not). If not, then the procedure quits, if yes, the change is made.
I am not sure which event is the best to use and the code.
A basic algorithm would be
1). Make selection via combo box
2). Check if the field was empty
3). If field is empty then proceed with selection, else
4). Ask user to confirm the new value
5). If yes, then commit to new selection, else
6). Retain original selection and quit.
Thanks in advance.
Mark.
On the scrounge again.
I have a combo which I am using to look up values from a table.
What I would like to do is once an initial selection has been made using the combo, should a user then go to change the original selection at any time in the future, before committing to the change a yes/no message box will prompt the user to confirm they wish to proceed with the change (or not). If not, then the procedure quits, if yes, the change is made.
I am not sure which event is the best to use and the code.
A basic algorithm would be
1). Make selection via combo box
2). Check if the field was empty
3). If field is empty then proceed with selection, else
4). Ask user to confirm the new value
5). If yes, then commit to new selection, else
6). Retain original selection and quit.
Thanks in advance.
Mark.