Basic error handling should be added to all procedures in production code, since otherwise an unexpected error will cause Access to crash or invite the end-user to enter debug mode.
A typical pattern for a basic error handler that traps all errors is:
Sub Name()
On Error GoTo errHandler
'[some...