On Error GoTo ErrHandler

I have this under every command button on my form, but I think there is another way of doing this

please advise