Hi all,
I have a combo box field that has two options: YES or NO.
The default is NO.
I have some code that sends an automatic e-mail to a group of people when the combo box is set to YES (after update event), which works really well. However, if anyone clicks on the box while it says YES and simply exits it, Access assumes that the box has been updated, it finds the YES and then it sends the same e-mail again.
To stop this I need code that checks the original entry and compares it to the new entry and if they are the same (two YES) then, do nothing. I imagine that a before update event needs to be used, but I am not sure how to do it.
Can someone provide a small example?
Thanks
Mafhobb
I have a combo box field that has two options: YES or NO.
The default is NO.
I have some code that sends an automatic e-mail to a group of people when the combo box is set to YES (after update event), which works really well. However, if anyone clicks on the box while it says YES and simply exits it, Access assumes that the box has been updated, it finds the YES and then it sends the same e-mail again.
To stop this I need code that checks the original entry and compares it to the new entry and if they are the same (two YES) then, do nothing. I imagine that a before update event needs to be used, but I am not sure how to do it.
Can someone provide a small example?
Thanks
Mafhobb