You must have a reference to FrmMasterDocument somewhere. Probably a renamed / deleted form or it could be a typo in your autoexec macro. Check in your autoexec macro or startup options initially then hunt through your vbcode (use search - it'll be quicker) if no joy there.