Ok - not sure which is your most recent, but both of those guys look ok. They do the same thing, looks like you might have renamed one of them later on. Judging by the Command127 name, it looks like you've been wrestling with this form for a while...
Here's what I'd like you to do. Open the form this is on, and go into your module editing mode - not sure if you're using A97, A2K or A2K2, but you need to be in the code for the form. What you do next will depend on which version you use:
A97: Click on DEBUG/Compile Loaded Modules or click the Compile loaded modules toolbar button.
A2K: Click DEBUG/Compile on the VB editing menu.
This operation will compile all your code, specifically the code in this form - it SHOULD blow up somewhere on the line that's "invalid outside procedure" -
Copy and paste about 15 lines above and below where you get the error and post it here. We'll take a look.
Somethings just not right, because your button SHOULD work.
"Remember, you're unique - just like everyone else"
You're invited to visit another free Access forum:
or my site,