Hi
I have a listbox with 5 options and 5 controls which are enabled/disabled based on the selection from this listbox.
What I need to do is clear any data entered into the 5 controls for a record each time the selection from the listbox is changed. Sounds simple, but I am having difficulty in deciding where to place the code.
I've thought about placing it in the On Change event of the list box but wasn't sure if the undo action would undo the clearing of the controls, in case a user accidentally changes the selection?
While I am clearing the data from the controls, I do not want to lose the information, so I am hoping to capture the changing/clearing of data with my existing audit trail which captures the name of the control that was changed, before and after values of the control and the name of the user who made the change.
As long as I can capture the changing/clearing with my audit trail I'm not so bothered about the undo action as I can tell the user to track the changes made to re-enter the data - but obviously this is not ideal.
Thanks in advance for any help and guidance.
I have a listbox with 5 options and 5 controls which are enabled/disabled based on the selection from this listbox.
What I need to do is clear any data entered into the 5 controls for a record each time the selection from the listbox is changed. Sounds simple, but I am having difficulty in deciding where to place the code.
I've thought about placing it in the On Change event of the list box but wasn't sure if the undo action would undo the clearing of the controls, in case a user accidentally changes the selection?
While I am clearing the data from the controls, I do not want to lose the information, so I am hoping to capture the changing/clearing of data with my existing audit trail which captures the name of the control that was changed, before and after values of the control and the name of the user who made the change.
As long as I can capture the changing/clearing with my audit trail I'm not so bothered about the undo action as I can tell the user to track the changes made to re-enter the data - but obviously this is not ideal.
Thanks in advance for any help and guidance.