From the error (which I haven't seen before) it seems that the form (or some control on it) has in its properties a value set in the "On Error" property. Can you check all "On Error" properties on the form?
Are you just running the bare example as downloaded, or are you trying it into your own...