On Error Do myerrorhandler Procedure myerrorhandler Local Array aErrorinfo(7) =Aerror(aErrorinfo) If aErrorinfo[1]=1 Do Form ... Endif