Use the before update event instead of the after update event. If there are incorrect entries set
Cancel = True
to stop the update and change to another record.
To stop the closing of the form set
Cancel = True
in the Form Unload event.
See
www.thenelson.name/#ReportFormTricks, "Check for required items" for an example of how to do it.