macro can't be found

BB

Registered User.
Local time
Today, 22:00
Joined
Aug 31, 2001
Messages
30
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
 
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.
 
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
 

Users who are viewing this thread

Back
Top Bottom