Macro error (Invalid outside procedure) (1 Viewer)

sladetroityer

Registered User.
Local time
Today, 12:03
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:
 

spikepl

Eledittingent Beliped
Local time
Today, 21:03
Joined
Nov 3, 2010
Messages
6,142
"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.
 

sladetroityer

Registered User.
Local time
Today, 12:03
Joined
Oct 26, 2011
Messages
149
That worked. Rouge End Sub command...... THANKS
 

Users who are viewing this thread

Top Bottom