Macro error (Invalid outside procedure)

sladetroityer

Registered User.
Local time
Today, 14:58
Joined
Oct 26, 2011
Messages
149
When I run a macro from a command button that filters data I am getting en error "Invalid Outside Prodecure", error number 40036. When I run the macro step by step it works fine.

How can I fix this?:confused:
 
"Invalid Outside Prodecure" is Access-speak for orphaned code floating around in a module or class module, and belonging to neither here nor there. Compile your code: VBA-window->Tools->Compile and that should bring up the offender.
 
That worked. Rouge End Sub command...... THANKS
 

Users who are viewing this thread

Back
Top Bottom