View Full Version : macro can't be found


BB
11-11-2001, 07:08 PM
When I try to open my WorkOrder form, I get a message that the macro 'WorkOrder Menu' can't be found. It was OK until, I think, I deleted a macro and replaced it with an event procedure.

I had a macro(OnOpen) - GoToNewWO ( Maximize, Go to Record (Form, frmWorkOrder, New)). Then I deleted the macro and added an event procedure on OnOpen(DoCmd.GoToRecord , , acNewRecord
DoCmd.Maximize)

I don't see anything wrong. I've used this event procedure on other forms. I've also checked my Switchboard macro and it looks OK.

Any ideas?
Thanks (new to Access),
BB

jwindon
11-12-2001, 05:46 AM
Open your form in design view and look thru the form's code. There is probably still a reference to the macro in the OnOpen event. Delete it and leave your new code in place.

diversoln
11-12-2001, 10:27 AM
When you look thru the code, I'd recommend the Edit/Find tool to make sure you get rid of all references to the macro. Cheers