A family of Microsoft relational database management systems designed for ease of use.
Change
Forms![Absence subform].Locked = ...
to
Me![Absence subform].Locked = ...
You should use the name of the subform as a control on the main form, this is not necessarily the same as the name of the source object of the subform.