There's probably 4 or 5 events you might be inclined to use from some tutorial - especially if you don't read them through completely.
For this, you'd want to use BeforeUpdate on the control, not the form, and cancel the event if the code doesn't pass the test. We can help if need be, as long as we know the control name and the logic that needs to be applied as the test. You should give it a shot - good learning experience.
The more we hear silence, the more we begin to think about our value in this universe.
Paraphrase of Professor Brian Cox.