OK, this is a very old thread. However, so far as I know, the Form_BeforeUpdate event is still legal and the code posted by our friend pr-eugin should still work even for Ac2019, but CERTAINLY for 2010. (I have 2010 myself.)
What is the result that you get that you believe to be incorrect? What did you do, what did you expect, what did you see?